public function getAllByModel($itemModel)
    {
        if (!empty($itemModel)) {
            $uri = ($itemModel instanceof core_kernel_classes_Resource) ? $itemModel->getUri() : $itemModel;
            return $this->itemClass->searchInstances(array(
                $this->itemModelProperty->getUri() => $uri
            ), array(
                'recursive' => true
            ));
        }
        return array();
    }
public function getAllByModel($itemModel)
    {
        if (!empty($itemModel)) {
            $uri = ($itemModel instanceof core_kernel_classes_Resource) ? $itemModel->getUri() : $itemModel;
            return $this->itemClass->searchInstances(array(
                $this->itemModelProperty->getUri() => $uri
            ), array(
                'recursive' => true
            ));
        }
        return array();
    }
public function getAllByModel ( $ itemModel ) { if ( ! empty ( $ itemModel ) ) { $ uri = ( $ itemModel instanceof core_kernel_classes_Resource ) ? $ itemModel -> getUri ( ) : $ itemModel ; return $ this -> itemClass -> searchInstances ( array ( $ this -> itemModelProperty -> getUri ( ) => $ uri ) , array ( 'recursive' => true ) ) ; } return array ( ) ; }
Get items of a specific model
@param string|core_kernel_classes_Resource $itemModel - the item model URI
@return core_kernel_classes_Resource[] the found items
Get items of a specific model