Redaxscript\Registry::set PHP Method

set() public method

set item to registry
Since: 2.1.0
public set ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item
    public function set($key = null, $value = null)
    {
        self::$_registryArray[$key] = $value;
    }

Usage Example

Example #1
0
 /**
  * centerStart
  *
  * @since 2.6.0
  */
 public static function centerStart()
 {
     if (Request::getPost(get_class()) === 'submit') {
         Registry::set('centerBreak', true);
         self::_process();
     }
 }
All Usage Examples Of Redaxscript\Registry::set