示例#1
0
文件: Pages.php 项目: bersace/strass
 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
文件: Button.php 项目: bersace/strass
 function __construct($label = NULL)
 {
     parent::__construct();
     if ($label) {
         $text = new WtkText($label);
         $this->addChild($text);
     }
     $this->template = 'button';
 }
示例#4
0
文件: Audio.php 项目: bersace/strass
 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
文件: Table.php 项目: bersace/strass
 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
文件: Form.php 项目: bersace/strass
 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
文件: Link.php 项目: bersace/strass
 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
文件: List.php 项目: bersace/strass
 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
文件: Button.php 项目: bersace/strass
 function __construct($label)
 {
     parent::__construct();
     $this->addChild($label);
 }
示例#12
0
文件: Group.php 项目: bersace/strass
 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
文件: Dialog.php 项目: bersace/strass
 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
文件: Item.php 项目: bersace/strass
 function __construct($child = null, $ordered = false)
 {
     parent::__construct($child);
     $this->ordered = $ordered;
 }