private function findTenantResource($path)
    {
        $q = new Pluf_SQL('path=%s', array(
            $path
        ));
        $item = new Tenant_Resource();
        $item = $item->getList(array(
            'filter' => $q->gen()
        ));
        if (isset($item) && $item->count() == 1) {
            return $item[0];
        }
        return null;
    }
private function findTenantResource($path)
    {
        $q = new Pluf_SQL('path=%s', array(
            $path
        ));
        $item = new Tenant_Resource();
        $item = $item->getList(array(
            'filter' => $q->gen()
        ));
        if (isset($item) && $item->count() == 1) {
            return $item[0];
        }
        return null;
    }
private function findTenantResource ( $ path ) { $ q = new Pluf_SQL ( 'path=%s' , array ( $ path ) ) ; $ item = new Tenant_Resource ( ) ; $ item = $ item -> getList ( array ( 'filter' => $ q -> gen ( ) ) ) ; if ( isset ( $ item ) && $ item -> count ( ) == 1 ) { return $ item [ 0 ] ; } return null ; }
Finds tenant resource with path

@param string $path
of the resource
@return Tenant_Resource the resource
Finds tenant resource with path