public function __construct($sId = null, IDataSrc $aDataSource = null, IView $aView = null) { parent::__construct($sId, 'org.jecat.framework:WidgetPaginator.template.html', null, $aView); $this->iCount = 10; $this->iShowWidth = 5; if ($aDataSource) { $this->setDataFromSubmit($aDataSource); } }
public function __construct($sId = null, $sTitle = null, Folder $aFolder = null, IAchiveStrategy $aAchiveStrategy = null, IView $aView = null) { $this->aStoreFolder = $aFolder; if ($aAchiveStrategy == null) { $this->aAchiveStrategy = DateAchiveStrategy::flyweight(array(true, true, true)); } else { $this->aAchiveStrategy = $aAchiveStrategy; } parent::__construct($sId, 'org.jecat.framework:WidgetFileUpdate.template.html', $sTitle, $aView); }
public function __construct($sId = null, $sTitle = null, $checkedValue = '1', $nType = self::checkbox, $bChecked = false, IView $aView = null) { if (!is_int($nType) || $nType < self::$nTypeMin || $nType > self::$nTypeMax) { throw new Exception("构建" . __CLASS__ . "对象时使用了非法的type参数(得到的type是:%s)", array($nType)); } $this->checkedValue = $checkedValue; if ($bChecked) { $this->setChecked(true); } $this->nType = $nType; parent::__construct($sId, 'org.jecat.framework:WidgetCheckBtn.template.html', $sTitle, $aView); }
public function __construct($sId = null, $sTitle = null, IView $aView = null) { parent::__construct($sId, 'org.jecat.framework:WidgetSelect.template.html', $sTitle, $aView); }
public function __construct($sId = null, $sTitle = null, $sValue = null, $nType = self::single, IView $aView = null) { $this->setType($nType); $this->setValue($sValue); parent::__construct($sId, 'org.jecat.framework:WidgetText.template.html', $sTitle, $aView); }
public function __construct($sId = null, $sTitle = null, IView $aView = null) { $this->setSerializMethod(array(__CLASS__, 'serialize'), array(',', '=')); $this->setUnSerializMethod(array(__CLASS__, 'unserialize'), array(',', '=')); parent::__construct($sId, null, $sTitle, $aView); }