kernel/section/ezsectionfunctioncollection.php
function fetchSectionObject( $sectionID = false, $sectionIdentifier = false )
    {
        if( $sectionID !== false )
        {
            if( $sectionIdentifier !== false )
            {
                $sectionObject = null;
            }
            else
            {
                $sectionObject = eZSection::fetch( $sectionID );
            }
        }
        else
        {
            if( $sectionIdentifier === false )
            {
                $sectionObject = null;
            }
            else
            {
                $sectionObject = eZSection::fetchByIdentifier( $sectionIdentifier );
            }
        }
        if ( $sectionObject === null )
            return array( 'error' => array( 'error_type' => 'kernel',
                                            'error_code' => eZError::KERNEL_NOT_FOUND ) );
        return array( 'result' => $sectionObject );
    }
function fetchSectionObject( $sectionID = false, $sectionIdentifier = false )
    {
        if( $sectionID !== false )
        {
            if( $sectionIdentifier !== false )
            {
                $sectionObject = null;
            }
            else
            {
                $sectionObject = eZSection::fetch( $sectionID );
            }
        }
        else
        {
            if( $sectionIdentifier === false )
            {
                $sectionObject = null;
            }
            else
            {
                $sectionObject = eZSection::fetchByIdentifier( $sectionIdentifier );
            }
        }
        if ( $sectionObject === null )
            return array( 'error' => array( 'error_type' => 'kernel',
                                            'error_code' => eZError::KERNEL_NOT_FOUND ) );
        return array( 'result' => $sectionObject );
    }
function fetchSectionObject ( $ sectionID = false , $ sectionIdentifier = false ) { if ( $ sectionID !== false ) { if ( $ sectionIdentifier !== false ) { $ sectionObject = null ; } else { $ sectionObject = eZSection :: fetch ( $ sectionID ) ; } } else { if ( $ sectionIdentifier === false ) { $ sectionObject = null ; } else { $ sectionObject = eZSection :: fetchByIdentifier ( $ sectionIdentifier ) ; } } if ( $ sectionObject === null ) return array ( 'error' => array ( 'error_type' => 'kernel' , 'error_code' => eZError :: KERNEL_NOT_FOUND ) ) ; return array ( 'result' => $ sectionObject ) ; }
Fetch section object given either section id or section identifier. There should be one and only one parameter.
@param integer $sectionID
@param string $sectionIdentifier
@return object
Fetch section object given either section id or section identifier . There should be one and only one parameter .