public static function getParam($name)
    {
        if ($param = static::getCont()->hasParameter($name)) {
            return static::getCont()->getParameter($name);
        }

        if (strpos($name, '.') !== false) {
            $parts = explode('.', $name, 2);
            $data = static::getCont()->getParameter($parts[0]);
            $data = UtilArray::cascadeGet($data, $parts[1]);
            if ($data) {
                return $data;
            }
        }

        return static::getCont()->getParameter($name);
    }
public static function getParam($name)
    {
        if ($param = static::getCont()->hasParameter($name)) {
            return static::getCont()->getParameter($name);
        }

        if (strpos($name, '.') !== false) {
            $parts = explode('.', $name, 2);
            $data = static::getCont()->getParameter($parts[0]);
            $data = UtilArray::cascadeGet($data, $parts[1]);
            if ($data) {
                return $data;
            }
        }

        return static::getCont()->getParameter($name);
    }
public static function getParam ( $ name ) { if ( $ param = static :: getCont ( ) -> hasParameter ( $ name ) ) { return static :: getCont ( ) -> getParameter ( $ name ) ; } if ( strpos ( $ name , '.' ) !== false ) { $ parts = explode ( '.' , $ name , 2 ) ; $ data = static :: getCont ( ) -> getParameter ( $ parts [ 0 ] ) ; $ data = UtilArray :: cascadeGet ( $ data , $ parts [ 1 ] ) ; if ( $ data ) { return $ data ; } } return static :: getCont ( ) -> getParameter ( $ name ) ; }
Pobieranie parametru.

@param string $name nazwa parametru

@return mixed
Pobieranie parametru .