本文整理汇总了PHP中repository::set_option方法的典型用法代码示例。如果您正苦于以下问题:PHP repository::set_option方法的具体用法?PHP repository::set_option怎么用?PHP repository::set_option使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类repository
的用法示例。
在下文中一共展示了repository::set_option方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set_option
/**
* 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);
}
示例2: set_option
/**
*
* @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;
}
示例3: set_option
/**
* 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;
}
示例4: set_option
public function set_option($options = array())
{
$options['fs_path'] = clean_param($options['fs_path'], PARAM_PATH);
$ret = parent::set_option($options);
return $ret;
}
示例5: set_option
/**
* 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;
}
示例6: set_option
/**
* 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;
}
示例7: set_option
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;
}