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();
        }
    }