public function getFieldDefinition($id, $status)
    {
        $rows = $this->contentTypeGateway->loadFieldDefinition($id, $status);

        if ($rows === false) {
            throw new NotFoundException(
                'FieldDefinition',
                array(
                    'id' => $id,
                    'status' => $status,
                )
            );
        }

        $multilingualData = $this->mapper->extractMultilingualData($rows);

        return $this->mapper->extractFieldFromRow(reset($rows), $multilingualData);
    }
public function getFieldDefinition($id, $status)
    {
        $rows = $this->contentTypeGateway->loadFieldDefinition($id, $status);

        if ($rows === false) {
            throw new NotFoundException(
                'FieldDefinition',
                array(
                    'id' => $id,
                    'status' => $status,
                )
            );
        }

        $multilingualData = $this->mapper->extractMultilingualData($rows);

        return $this->mapper->extractFieldFromRow(reset($rows), $multilingualData);
    }
public function getFieldDefinition ( $ id , $ status ) { $ rows = $ this -> contentTypeGateway -> loadFieldDefinition ( $ id , $ status ) ; if ( $ rows === false ) { throw new NotFoundException ( 'FieldDefinition' , array ( 'id' => $ id , 'status' => $ status , ) ) ; } $ multilingualData = $ this -> mapper -> extractMultilingualData ( $ rows ) ; return $ this -> mapper -> extractFieldFromRow ( reset ( $ rows ) , $ multilingualData ) ; }
Returns field definition for the given field definition id.

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If field definition is not found

@param mixed $id
@param int $status One of Type::STATUS_DEFINED|Type::STATUS_DRAFT|Type::STATUS_MODIFIED

@return \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
Returns field definition for the given field definition id .