private function getSimpleRights(BaseObject $object) { $query = SimpleRightTable::getList(array('select' => array('ACCESS_CODE'), 'filter' => array('OBJECT_ID' => $object->getId()))); $permissions = array(); while ($row = $query->fetch()) { $permissions[] = $row['ACCESS_CODE']; } return $permissions; }
private function getSimpleRightsFromParent() { if ($this->simpleRightsFromParent !== null) { return $this->simpleRightsFromParent; } if ($this->object->getParentId()) { $this->simpleRightsFromParent = SimpleRightTable::getList(array('filter' => array('OBJECT_ID' => $this->object->getParentId())))->fetchAll(); } else { $this->simpleRightsFromParent = array(); } return $this->simpleRightsFromParent; }