Example #1
0
 public function __construct($Classes = null)
 {
     if ($Classes) {
         $this->addAcceptClasses($Classes);
     }
     parent::__construct();
 }
Example #2
0
 public function __construct($sType, $sMessage, $arrMessageArgs = null)
 {
     parent::__construct();
     $this->sType = $sType;
     $this->sMessage = $sMessage;
     $this->arrMessageArgs = Type::toArray($arrMessageArgs);
 }
Example #3
0
 public function __construct($sId = null, $sTemplateName = null, $sTitle = null, IView $aView = null)
 {
     parent::__construct();
     $this->setId($sId);
     $this->setTitle($sTitle ? $sTitle : $sId);
     $this->setTemplateName($sTemplateName);
     // 消息队列过滤器
     $this->messageQueue()->filters()->add(function ($aMsg, $aWidget) {
         if ($aMsg->poster() != $aWidget) {
             StopFilterSignal::stop();
         }
         return array($aMsg);
     }, $this);
     if ($aView) {
         $aView->addWidget($this);
     }
 }
Example #4
0
 public function __construct(IModel $aModel)
 {
     parent::__construct();
     $this->aModel = $aModel;
 }
Example #5
0
 public function __construct(array $arrDataStack = array())
 {
     parent::__construct();
     $this->arrDataStack = $arrDataStack;
 }
Example #6
0
 public function __construct(ResourceManager $aResourceManager = null)
 {
     parent::__construct();
     $this->aResourceManager = $aResourceManager ? $aResourceManager : Application::singleton()->publicFolders();
     $this->addRequire('org.jecat.framework:style/style.css', self::RESRC_CSS);
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
 }