kernel/private/classes/ezcontentobjectstate.php
public static function fetchByIdentifier( $identifier, $groupID )
    {
        $db = eZDB::instance();
        $identifier = $db->escapeString( $identifier );
        $states = self::fetchByConditions( array( "ezcobj_state.identifier='$identifier'", "ezcobj_state_group.id=$groupID" ), 1, 0 );
        $state = count( $states ) > 0 ? $states[0] : false;
        return $state;
    }
public static function fetchByIdentifier( $identifier, $groupID )
    {
        $db = eZDB::instance();
        $identifier = $db->escapeString( $identifier );
        $states = self::fetchByConditions( array( "ezcobj_state.identifier='$identifier'", "ezcobj_state_group.id=$groupID" ), 1, 0 );
        $state = count( $states ) > 0 ? $states[0] : false;
        return $state;
    }
public static function fetchByIdentifier ( $ identifier , $ groupID ) { $ db = eZDB :: instance ( ) ; $ identifier = $ db -> escapeString ( $ identifier ) ; $ states = self :: fetchByConditions ( array ( "ezcobj_state.identifier='$identifier'" , "ezcobj_state_group.id=$groupID" ) , 1 , 0 ) ; $ state = count ( $ states ) > 0 ? $ states [ 0 ] : false ; return $ state ; }
Fetches a content object state by its identifier
and group ID

@param string $identifier the identifier of the content object state, which is unique per content object state group
@param integer $groupID the numerical ID of the content object state group
@return eZContentObjectState|boolean an instance of eZContentObjectState, or false if the requested state does not exist
Fetches a content object state by its identifier and group ID