WidgetContext::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $name )
$name string
    public function __construct($name)
    {
        parent::__construct($this->m_columnNames);
        $this->m_data['name'] = strtolower($name);
        $this->fetch();
        if (empty($this->m_data['id'])) {
            // store new context
            $this->create(array('name' => $this->getName()));
            $this->fetch();
        }
    }