public function hasModelStatus(core_kernel_classes_Resource $item, $status)
    {
        $returnValue = (bool)false;

        if (!is_null($item)) {
            if (!is_array($status) && is_string($status)) {
                $status = array($status);
            }
            try {
                $itemModel = $item->getOnePropertyValue($this->itemModelProperty);
                if ($itemModel instanceof core_kernel_classes_Resource) {
                    $itemModelStatus = $itemModel->getUniquePropertyValue($this->getProperty(ItemModelStatus::CLASS_URI));
                    if (in_array($itemModelStatus->getUri(), $status)) {
                        $returnValue = true;
                    }
                }
            } catch (common_exception_EmptyProperty $ce) {
                $returnValue = false;
            }
        }

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

        if (!is_null($item)) {
            if (!is_array($status) && is_string($status)) {
                $status = array($status);
            }
            try {
                $itemModel = $item->getOnePropertyValue($this->itemModelProperty);
                if ($itemModel instanceof core_kernel_classes_Resource) {
                    $itemModelStatus = $itemModel->getUniquePropertyValue($this->getProperty(ItemModelStatus::CLASS_URI));
                    if (in_array($itemModelStatus->getUri(), $status)) {
                        $returnValue = true;
                    }
                }
            } catch (common_exception_EmptyProperty $ce) {
                $returnValue = false;
            }
        }

        return (bool)$returnValue;
    }
public function hasModelStatus ( core_kernel_classes_Resource $ item , $ status ) { $ returnValue = ( bool ) false ; if ( ! is_null ( $ item ) ) { if ( ! is_array ( $ status ) && is_string ( $ status ) ) { $ status = array ( $ status ) ; } try { $ itemModel = $ item -> getOnePropertyValue ( $ this -> itemModelProperty ) ; if ( $ itemModel instanceof core_kernel_classes_Resource ) { $ itemModelStatus = $ itemModel -> getUniquePropertyValue ( $ this -> getProperty ( ItemModelStatus :: CLASS_URI ) ) ; if ( in_array ( $ itemModelStatus -> getUri ( ) , $ status ) ) { $ returnValue = true ; } } } catch ( common_exception_EmptyProperty $ ce ) { $ returnValue = false ; } } return ( bool ) $ returnValue ; }
Short description of method hasModelStatus

@access public
@author Joel Bout, <joel@taotesting.com>
@param  Resource item
@param  array status
@return boolean
Short description of method hasModelStatus