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'; }
/** * @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(); }
function __construct($label = NULL) { parent::__construct(); if ($label) { $text = new WtkText($label); $this->addChild($text); } $this->template = 'button'; }
function __construct($src) { parent::__construct(); $this->sources = array($src); $this->autoplay = false; $this->loop = false; $this->controls = true; $this->muted = false; $this->preload = false; }
function __construct($label = null) { parent::__construct(); if ($label) { $this->caption = new Wtk_Inline($label); } else { $this->caption = null; } $this->addFlags('control'); }
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); }
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$$'); }
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; }
function __construct($ordered = FALSE, $reversed = FALSE) { parent::__construct(); $this->setOrdered($ordered); $this->setReversed($reversed); }
function __construct() { parent::__construct(); $buttons = func_get_args(); call_user_func_array(array($this, "addChildren"), $buttons); }
function __construct($label) { parent::__construct(); $this->addChild($label); }
function __construct($label = NULL) { parent::__construct(); $this->data['label'] = $label; }
function __construct($text = '') { parent::__construct(); $children = func_get_args(); call_user_func_array(array(&$this, 'addChildren'), $children); }
function __construct($title = NULL) { parent::__construct(); $this->data['title'] = $title; }
function __construct($row_path) { parent::__construct(); $this->row_path = $row_path; }
/** * Define @model only if you want to use addChild convenient * parameters. * */ function __construct($title) { parent::__construct(); $this->title = $title; }
function __construct($child = null, $ordered = false) { parent::__construct($child); $this->ordered = $ordered; }