/** * Find all the nodes wich mach the search criteria. * The search array must have the following structure (its array keys aren't required). * * array( * 'types' => array('typename1', 'typename2'), * 'roots' => array('rootpath1', 'rootpath2'), * 'dateFrom' => 'date', * 'dateTo' => 'date', * 'name' => 'name', * 'isExportable' => 'bool' * ) * * * @param array $criteria * @param string[] | RoleInterface[] $userRoles * @param boolean $isRecursive * * @return array */ public function getByCriteria(array $criteria, array $userRoles = null, $isRecursive = false) { return $this->resourceNodeRepo->findByCriteria($criteria, $userRoles, $isRecursive); }
/** * Find all the nodes wich mach the search criteria. * The search array must have the following structure (its array keys aren't required). * * array( * 'types' => array('typename1', 'typename2'), * 'roots' => array('rootpath1', 'rootpath2'), * 'dateFrom' => 'date', * 'dateTo' => 'date', * 'name' => 'name', * 'isExportable' => 'bool' * ) * * * @param array $criteria * @param string[] | RoleInterface[] $userRoles * * @return array */ public function getByCriteria(array $criteria, array $userRoles = null) { return $this->resourceNodeRepo->findByCriteria($criteria, $userRoles); }