CompleteLister::init PHP Метод

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

Initialization.
public init ( )
    public function init()
    {
        parent::init();
        if (!$this->template->hasTag($this->item_tag)) {
            if (@$this->app->compat_42 && $this instanceof Menu_Basic) {
                // look for MenuItem
                $default = $this->item_tag;
                $this->item_tag = 'MenuItem';
                $this->container_tag = 'Item';
                if (!$this->template->hasTag($this->item_tag)) {
                    throw $this->template->exception('Template must have "' . $default . '" tag')->addMoreInfo('compat', 'Also tried for compatibility reason "' . $this->item_tag . '" tag');
                }
            } else {
                throw $this->template->exception('Template must have "' . $this->item_tag . '" tag');
            }
        }
        $this->row_t = $this->template->cloneRegion($this->item_tag);
        if ($this->template->hasTag('sep')) {
            $this->sep_html = $this->template->get('sep');
        }
    }

Usage Example

Пример #1
0
 function init()
 {
     parent::init();
     if (!$this->skip_var) {
         $this->skip_var = $this->name . '_skip';
     }
 }
All Usage Examples Of CompleteLister::init