/** * @param APPLICATION $context Main application. */ public function __construct($context) { parent::__construct($context); $this->_select = 'perm.*'; $this->_order = 'kind DESC, importance DESC'; $this->_tables = "{$context->table_names->folder_permissions} perm"; $this->type = All; }
/** * @param ENTRY $entry Entry for which branches are retrieved. */ public function __construct($entry) { parent::__construct($entry->app); $this->_entry = $entry; }