本文整理汇总了PHP中plugin::set方法的典型用法代码示例。如果您正苦于以下问题:PHP plugin::set方法的具体用法?PHP plugin::set怎么用?PHP plugin::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plugin
的用法示例。
在下文中一共展示了plugin::set方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set
/**
* Update parameters
* You may use
* a,b,c,d,e,f etc.. as $setting.
*
* if the setting is called other than the alphabeth, you may still access these settings
* eg:
*
* Instead of updating parameters you would be updating variables
*
* Lets say you set variable testing:
*
* $this->set('testing','Hello!');
*
* in your plugin you can access it as: this.testing (if it is inside the scope)
* or ExamplePlugin.testing outside the scope of your plugin.
*
* if you use __get() magic function, you should be able to intercept.
*
* @see plugin::set()
*/
function set($setting, $value)
{
return parent::set($setting, $value);
}