public function elFinderDrupal::__construct in elFinder file manager 6.2
Same name and namespace in other branches
- 7.3 inc/elfinder.drupal.inc \elFinderDrupal::__construct()
- 7.2 inc/elfinder.drupal.inc \elFinderDrupal::__construct()
File
- inc/
elfinder.drupal.inc, line 5
Class
Code
public function __construct($opts) {
if (is_callable(array(
$this,
'version',
))) {
$ver = floatval($this
->version());
if (isset(elFinder::$ApiVersion)) {
$ver = elFinder::$ApiVersion;
}
if ($ver == 2.1 && is_callable(array(
$this,
'revision',
)) && $this
->revision() < 37) {
$this
->connector_unsupported_error();
}
parent::__construct($opts);
$this->commands['desc'] = array(
'target' => TRUE,
'content' => FALSE,
);
$this->commands['owner'] = array(
'target' => TRUE,
'content' => FALSE,
);
$this->commands['downloadcount'] = array(
'target' => TRUE,
);
}
else {
$this
->connector_unsupported_error();
}
}