22 'timestamp'=>$this->cfg->value ? strtotime($this->cfg->value) : time(),
23 'defaultFormat'=>array(
31 return $this->date->format();
34 public function setValue($value, $refill=
false) {
35 parent::setValue($value);
37 $this->date->set($value,
'formatDate',
'short2');
39 $this->date->set($value);
43 if ($this->cfg->mode ==
'view')
44 return $this->date->format(
'date',
'short2');
46 if ($this->cfg->useJs) {
48 $resp->addJs(
'jqueryui');
50 $resp->blockJquery(
'$("#'.$this->
id.
'").datepicker('.
utils::jsEncode($this->jsPrm).
');');
54 array_merge($this->html, array(
57 'value'=>$this->date->format(
'date',
'short2'),
63 array_merge($this->xul, array(
65 'value'=>$this->date->format(
'date',
'short2'),
static htmlTag($tag, array $attributes, $content=null)
static getHelper($className, array $cfg=array())