/** * Constructor set main values to {@link $config_area}, * collect {@link $params} from {@link $req} and checks * the permission for directory scan. * @return void */ public function __construct() { // call abstract area constructor parent::__construct(); // init objects $this->db = sf_api('LIB', 'Ado'); $this->_initParams(); $this->_checkPerm(); $this->_initConfiguration(); }
/** * Constructor set main values to {@link $controller_cfg}, * collect {@link $params} from {@link $req} and instantiate * {@link $directory_sql_item}, {@link $directory_sql_collection}, * {@link $directory_sql_tree}, {@link $file_sql_item}, * {@link $file_sql_collection}. * @return void */ public function __construct() { // call abstract area constructor parent::__construct(); $this->_initConfiguration(); // set area configuration $this->config_area['perm_area'] = 'area_' . $this->config_area['area_name']; // perm check for the whole area $this->cfg->perm()->check($this->config_area['perm_area']); $this->_initLang(); $this->_initModel(); $this->_initParams(); }