public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->type = 'file'; if (isset($param['uploadifive'])) { if (!$param['uploadifive'] instanceof data) { $param['uploadifive'] = new data(is_array($param['uploadifive']) ? $param['uploadifive'] : array()); } if (!isset($param['uploadifive']->css)) { $param['uploadifive']->css = true; } $this->uploadifive = $param['uploadifive']; } if (isset($param['name_filer_length'])) { $this->name_filer_length = $param['name_filer_length']; } if (isset($param['multiple'])) { $this->multiple = $param['multiple']; } if (isset($param['prefix'])) { $this->prefix = $param['prefix']; } if (isset($param['path'])) { $this->path = $param['path']; } if (isset($param['url'])) { $this->url = $param['url']; } if (isset($param['class_delete'])) { $this->class_delete = $param['class_delete']; } }
public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->type = 'button'; if (isset($param['onclick'])) { $this->onclick = $param['onclick']; } }
public function __construct($name, $param = array()) { parent::__construct($name, $param); if (isset($param['point'])) { $this->point = $param['point']; } if (isset($param['url'])) { $this->url = $param['url']; } $this->type = 'hidden'; }
public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->type = 'radio'; if (isset($param['uniform'])) { if (!$param['uniform'] instanceof data) { $param['uniform'] = new data(); } if (!isset($param['uniform']->css)) { $param['uniform']->css = true; } $this->uniform = $param['uniform']; } }
public function __construct($name, $param = array()) { parent::__construct($name, $param); if (isset($param['map_type'])) { $this->map_type = $param['map_type']; } if (isset($param['center'])) { $this->center = $param['center']; } if (isset($param['zoom'])) { $this->zoom = $param['zoom']; } $this->type = 'hidden'; }
public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->controller = isset($param['controller']) ? $param['controller'] : 'cindex'; $this->action = isset($param['action']) ? $param['action'] : 'index'; $this->cid = isset($param['cid']) ? $param['cid'] : $this->view->control()->config->param->id; if (!$this->cid) { $s = (int) session::get($this->controller . '_clink'); if ($s) { $this->cid = $s; } else { $this->cid = time(); session::set($this->controller . '_clink', $this->cid); } } }
public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->type = 'checkbox'; if (isset($param['uniform']) && $param['uniform'] != false) { if (!$param['uniform'] instanceof data) { $param['uniform'] = new data(); } if (!isset($param['uniform']->css)) { $param['uniform']->css = true; } $this->uniform = $param['uniform']; } if (isset($param['multiple'])) { $this->multiple = $param['multiple']; } }
public function __construct($name, $param = array()) { parent::__construct($name, $param); if (isset($param['ui'])) { if (!$param['ui'] instanceof data) { $param['ui'] = new data($param['ui']); } if (!isset($param['ui']->theme)) { $param['ui']->theme = 'base'; } if (!isset($param['ui']->lang)) { $param['ui']->lang = 'ru'; } $this->ui = $param['ui']; } $this->validator[] = 'date'; $this->type = 'text'; if (isset($param['time'])) { $this->time = $param['time']; } }
public function __construct($name, $param = array()) { parent::__construct($name, $param); if (isset($param['ui'])) { if (!$param['ui'] instanceof data) { $param['ui'] = new data($param['ui']); } if (!isset($param['ui']->theme)) { $param['ui']->theme = 'base'; } if (!isset($param['ui']->opt)) { $param['ui']->opt = array(); } $this->ui = $param['ui']; } if (!isset($param['fetch'])) { $param['fetch'] = new data(); } $this->fetch = $param['fetch']; if (!$this->fetch->method) { $this->fetch->method = $name; } $this->type = 'text'; }
public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->type = 'hidden'; }
public function __construct($name, $param = array()) { parent::__construct($name, $param); $this->type = 'password'; }