/** * save api_key in config table * @param array $options * @return boolean */ public function set_option($options = array()) { if (!empty($options['api_key'])) { set_config('api_key', trim($options['api_key']), 'flickr_public'); } unset($options['api_key']); return parent::set_option($options); }
/** * * @param array $options * @return mixed */ public function set_option($options = array()) { if (!empty($options['api_key'])) { set_config('api_key', trim($options['api_key']), 'boxnet'); } unset($options['api_key']); $ret = parent::set_option($options); return $ret; }
/** * Set dropbox option * @param array $options * @return mixed */ public function set_option($options = array()) { if (!empty($options['dropbox_key'])) { set_config('dropbox_key', trim($options['dropbox_key']), 'dropbox'); } if (!empty($options['dropbox_secret'])) { set_config('dropbox_secret', trim($options['dropbox_secret']), 'dropbox'); } if (!empty($options['dropbox_cachelimit'])) { $this->cachelimit = (int) trim($options['dropbox_cachelimit']); set_config('dropbox_cachelimit', $this->cachelimit, 'dropbox'); } unset($options['dropbox_key']); unset($options['dropbox_secret']); unset($options['dropbox_cachelimit']); $ret = parent::set_option($options); return $ret; }
public function set_option($options = array()) { $options['fs_path'] = clean_param($options['fs_path'], PARAM_PATH); $ret = parent::set_option($options); return $ret; }
/** * Set omero option * @param array $options * @return mixed */ public function set_option($options = array()) { if (!empty($options['omero_restendpoint'])) { set_config('omero_restendpoint', trim($options['omero_restendpoint']), 'omero'); } if (!empty($options['omero_key'])) { set_config('omero_key', trim($options['omero_key']), 'omero'); } if (!empty($options['omero_secret'])) { set_config('omero_secret', trim($options['omero_secret']), 'omero'); } if (!empty($options['omero_cachelimit'])) { $this->cachelimit = (int) trim($options['omero_cachelimit']); set_config('omero_cachelimit', $this->cachelimit, 'omero'); } //unset($options['omero_restendpoint']); unset($options['omero_key']); unset($options['omero_secret']); unset($options['omero_cachelimit']); $ret = parent::set_option($options); return $ret; }
/** * Set dropbox option * @param array $options * @return mixed */ public function set_option($options = array()) { if (!empty($options['dropbox_key'])) { set_config('dropbox_key', trim($options['dropbox_key']), 'dropbox'); } if (!empty($options['dropbox_secret'])) { set_config('dropbox_secret', trim($options['dropbox_secret']), 'dropbox'); } unset($options['dropbox_key']); unset($options['dropbox_secret']); $ret = parent::set_option($options); return $ret; }
public function set_option($options = array()) { if (!empty($options['dspace_url'])) { set_config('dspace_url', trim($options['dspace_url']), 'dspace'); } if (!empty($options['dspace_username'])) { set_config('dspace_username', trim($options['dspace_username']), 'dspace'); } if (!empty($options['dspace_password'])) { set_config('dspace_password', trim($options['dspace_password']), 'dspace'); } unset($options['dspace_url']); unset($options['dspace_username']); unset($options['dspace_password']); $ret = parent::set_option($options); return $ret; }