CBPAllStateService :: SetStateTitle: Bitrix method

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

    
public function SetStateTitle($workflowId$stateTitle)
    {
        global 
$DB;

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

        
$DB->Query(
            
"UPDATE b_bp_workflow_state SET ".
            
"    STATE_TITLE = ".(strlen($stateTitle) > "'".$DB->ForSql($stateTitle)."'" "NULL").", ".
            
"    MODIFIED = ".$DB->CurrentTimeFunction()." ".
            
"WHERE ID = '".$DB->ForSql($workflowId)."' "
        
);
    }