kernel/private/classes/ezcontentobjectstate.php
public static function fetchById( $id )
    {
        $states = self::fetchByConditions( array( "ezcobj_state.id=$id" ), 1, 0 );
        $state = count( $states ) > 0 ? $states[0] : false;
        return $state;
    }
public static function fetchById( $id )
    {
        $states = self::fetchByConditions( array( "ezcobj_state.id=$id" ), 1, 0 );
        $state = count( $states ) > 0 ? $states[0] : false;
        return $state;
    }
public static function fetchById ( $ id ) { $ states = self :: fetchByConditions ( array ( "ezcobj_state.id=$id" ) , 1 , 0 ) ; $ state = count ( $ states ) > 0 ? $ states [ 0 ] : false ; return $ state ; }
Fetches a content object state by its numerical ID.
@param integer $id the numerical ID of the content object state
@return eZContentObjectState|boolean an instance of eZContentObjectState, or false if the requested state does not exist
Fetches a content object state by its numerical ID .