public function hasItemModel(core_kernel_classes_Resource $item, $models)
    {
        $returnValue = (bool)false;

        $itemModel = $item->getOnePropertyValue($this->itemModelProperty);
        if ($itemModel instanceof core_kernel_classes_Resource) {
            if (in_array($itemModel->getUri(), $models)) {
                $returnValue = true;
            }
        }

        return (bool)$returnValue;
    }
public function hasItemModel(core_kernel_classes_Resource $item, $models)
    {
        $returnValue = (bool)false;

        $itemModel = $item->getOnePropertyValue($this->itemModelProperty);
        if ($itemModel instanceof core_kernel_classes_Resource) {
            if (in_array($itemModel->getUri(), $models)) {
                $returnValue = true;
            }
        }

        return (bool)$returnValue;
    }
public function hasItemModel ( core_kernel_classes_Resource $ item , $ models ) { $ returnValue = ( bool ) false ; $ itemModel = $ item -> getOnePropertyValue ( $ this -> itemModelProperty ) ; if ( $ itemModel instanceof core_kernel_classes_Resource ) { if ( in_array ( $ itemModel -> getUri ( ) , $ models ) ) { $ returnValue = true ; } } return ( bool ) $ returnValue ; }
Check if the Item has on of the itemModel property in the models array

@access public
@author Joel Bout, <joel@taotesting.com>
@param  Resource item
@param  array models the list of URI of the itemModel to check
@return boolean
Check if the Item has on of the itemModel property in the models array