/** * Constructor activating the default information of the class * * @access protected */ function __construct() { parent::__construct(); $extensions = WFExtensions::loadExtensions(array('types' => array('links'))); // Load all link extensions foreach ($extensions['links'] as $link) { $this->extensions[] =& $this->getLinkExtension($link); } }
/** * Constructor activating the default information of the class * * @access protected */ public function __construct() { parent::__construct(); $extensions = self::loadExtensions(array('types' => array('links'))); // Load all link extensions foreach ($extensions['links'] as $link) { $this->extensions[] = $this->getLinkExtension($link); } $request = WFRequest::getInstance(); $request->setRequest(array($this, 'getLinks')); }
/** * @access protected */ public function __construct($config = array()) { $default = array('dir' => '', 'filesystem' => 'joomla', 'filetypes' => 'images=jpg,jpeg,png,gif', 'upload' => array('runtimes' => 'html5,flash,silverlight', 'chunk_size' => null, 'max_size' => 1024, 'validate_mimetype' => 0), 'folder_tree' => 1, 'list_limit' => 'all', 'features' => array('upload' => 1, 'folder' => array('create' => 1, 'delete' => 1, 'rename' => 1, 'move' => 1), 'file' => array('rename' => 1, 'delete' => 1, 'move' => 1)), 'websafe_mode' => 'utf-8'); $config = array_merge($default, $config); // Call parent parent::__construct($config); // Setup XHR callback funtions $this->setRequest(array($this, 'getItems')); $this->setRequest(array($this, 'getFileDetails')); $this->setRequest(array($this, 'getFolderDetails')); $this->setRequest(array($this, 'getTree')); $this->setRequest(array($this, 'getTreeItem')); // Get actions $this->getStdActions(); // Get buttons $this->getStdButtons(); }