Пример #1
0
 function __construct($id, Wtk_Pages_Model $model, Wtk_Pages_Renderer $renderer)
 {
     parent::__construct();
     $this->id = $id;
     $this->renderer = $renderer;
     $this->model = $model;
     $this->stylecomponent = 'pages';
 }
Пример #2
0
 /**
  * @title is either a wiki string or a element.
  */
 function __construct($id = null, $title = NULL)
 {
     parent::__construct();
     $this->id = $id;
     $this->level = $title ? 1 : 0;
     $this->setTitle($title);
     $this->documents = array();
 }
Пример #3
0
 function __construct($label = NULL)
 {
     parent::__construct();
     if ($label) {
         $text = new WtkText($label);
         $this->addChild($text);
     }
     $this->template = 'button';
 }
Пример #4
0
 function __construct($src)
 {
     parent::__construct();
     $this->sources = array($src);
     $this->autoplay = false;
     $this->loop = false;
     $this->controls = true;
     $this->muted = false;
     $this->preload = false;
 }
Пример #5
0
 function __construct($label = null)
 {
     parent::__construct();
     if ($label) {
         $this->caption = new Wtk_Inline($label);
     } else {
         $this->caption = null;
     }
     $this->addFlags('control');
 }
Пример #6
0
 function __construct($model, $show_header = true, $class_col = null)
 {
     parent::__construct();
     $this->model = $model;
     $this->show_header = $show_header;
     $this->columns = array();
     $this->class_col = (array) $class_col;
     $this->cclasses = array();
     $this->setRowDojoType(null);
 }
Пример #7
0
 function __construct(&$model)
 {
     parent::__construct();
     $this->id = $model->id;
     $this->model = $model;
     $this->setDojoType("wtk.Form");
     // Add a hidden field 'validated' which ensure that at least one
     // data is sent if this form is validated. If you call validate()
     // before new Wtk_Form_Model(), you won't be annoyed by this
     // value.
     $this->addHidden('$$validated$$');
 }
Пример #8
0
 function __construct($href, $metas = NULL, $child = NULL)
 {
     parent::__construct();
     $this->metas = new Wtk_Metas(array('title' => is_string($metas) ? $metas : $href, 'label' => is_string($metas) ? $metas : basename($href)));
     if ($metas instanceof Wtk_Metas) {
         $this->metas->merge($metas);
     }
     if ($child instanceof Wtk_Element) {
         $this->addChild($child);
     } else {
         $this->addRawText($this->metas->label);
     }
     $this->metas = $this->metas;
     $this->href = $href;
 }
Пример #9
0
 function __construct($ordered = FALSE, $reversed = FALSE)
 {
     parent::__construct();
     $this->setOrdered($ordered);
     $this->setReversed($reversed);
 }
Пример #10
0
 function __construct()
 {
     parent::__construct();
     $buttons = func_get_args();
     call_user_func_array(array($this, "addChildren"), $buttons);
 }
Пример #11
0
 function __construct($label)
 {
     parent::__construct();
     $this->addChild($label);
 }
Пример #12
0
 function __construct($label = NULL)
 {
     parent::__construct();
     $this->data['label'] = $label;
 }
Пример #13
0
 function __construct($text = '')
 {
     parent::__construct();
     $children = func_get_args();
     call_user_func_array(array(&$this, 'addChildren'), $children);
 }
Пример #14
0
 function __construct($title = NULL)
 {
     parent::__construct();
     $this->data['title'] = $title;
 }
Пример #15
0
 function __construct($row_path)
 {
     parent::__construct();
     $this->row_path = $row_path;
 }
Пример #16
0
 /**
  * Define @model only if you want to use addChild convenient
  * parameters.
  *
  */
 function __construct($title)
 {
     parent::__construct();
     $this->title = $title;
 }
Пример #17
0
 function __construct($child = null, $ordered = false)
 {
     parent::__construct($child);
     $this->ordered = $ordered;
 }