CBPAllStateService::GetStateTitle: Bitrix method

      
<?php 
//  CBPAllStateService :: GetStateTitle()
//  /dist/bitrix/modules/bizproc/classes/general/stateservice.php:64

    
public function GetStateTitle($workflowId)
    {
        global 
$DB;

        
$workflowId trim($workflowId);
        if (
strlen($workflowId) <= 0)
            throw new 
Exception("workflowId");

        
$db $DB->Query("SELECT STATE_TITLE FROM b_bp_workflow_state WHERE ID = '".$DB->ForSql($workflowId)."' ");
        if (
$ar $db->Fetch())
            return 
$ar["STATE_TITLE"];

        return 
"";
    }