Redaxscript\Registry::get PHP Method

get() public method

get item from registry
Since: 3.0.0
public get ( string $key = null ) : mixed
$key string key of the item
return mixed
    public function get($key = null)
    {
        if (array_key_exists($key, self::$_registryArray)) {
            return self::$_registryArray[$key];
        } else {
            if (!$key) {
                return self::$_registryArray;
            }
        }
        return false;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * contentFragmentEnd
  *
  * @since 3.0.0
  */
 public static function contentFragmentEnd()
 {
     if (Registry::get('lastTable') === 'articles') {
         $url = Registry::get('root') . Registry::get('parameterRoute') . Registry::get('fullRoute');
         return self::render($url);
     }
 }
All Usage Examples Of Redaxscript\Registry::get