Beans_Lessc::get PHP Method

get() protected method

get the highest occurrence entry for a name
protected get ( $name, $default = null )
    protected function get($name, $default = null)
    {
        $current = $this->env;
        $isArguments = $name == $this->vPrefix . 'arguments';
        while ($current) {
            if ($isArguments && isset($current->arguments)) {
                return array('list', ' ', $current->arguments);
            }
            if (isset($current->store[$name])) {
                return $current->store[$name];
            } else {
                $current = isset($current->storeParent) ? $current->storeParent : $current->parent;
            }
        }
        return $default;
    }