当前位置: 首页>>代码示例>>PHP>>正文


PHP CPortlet::init方法代码示例

本文整理汇总了PHP中CPortlet::init方法的典型用法代码示例。如果您正苦于以下问题:PHP CPortlet::init方法的具体用法?PHP CPortlet::init怎么用?PHP CPortlet::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CPortlet的用法示例。


在下文中一共展示了CPortlet::init方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 public function init()
 {
     if ($this->products === null) {
         throw new CException(Shop::t('Please provide a product that can be bought with the ImageUploadWidget'));
     }
     return parent::init();
 }
开发者ID:rinodung,项目名称:yii-shop,代码行数:7,代码来源:ImageUploadWidget.php

示例2: init

 public function init()
 {
     $assets = Yii::app()->assetManager->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . '../assets');
     $clientScript = Yii::app()->clientScript;
     $clientScript->registerCssFile($assets . '/widget-widget.css');
     parent::init();
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:7,代码来源:NewsRandom.php

示例3: init

 /**
  * Class object initialization
  */
 public function init()
 {
     $this->title = Yii::t('comments', 'CommentsTitle');
     $this->decorationCssClass = "portlet-header";
     $this->titleCssClass = "portlet-title";
     parent::init();
 }
开发者ID:lanzelotik,项目名称:celestic-community,代码行数:10,代码来源:ListComments.php

示例4: init

 public function init()
 {
     if (!$this->dialogMode) {
         $this->title = Yii::t('CalModule.fullCal', 'Events list');
     }
     parent::init();
 }
开发者ID:SoftScape,项目名称:open-school-CE,代码行数:7,代码来源:EventHelper.php

示例5: init

 public function init()
 {
     $this->title = Yii::t('portlet', 'EmailNotificationsTitle');
     $this->decorationCssClass = "portlet-header";
     $this->titleCssClass = "portlet-title";
     parent::init();
 }
开发者ID:lanzelotik,项目名称:celestic-community,代码行数:7,代码来源:EmailNotifications.php

示例6: init

 public function init()
 {
     if (!Shop::getCartContent()) {
         return false;
     }
     return parent::init();
 }
开发者ID:rinodung,项目名称:yii-shop,代码行数:7,代码来源:ShoppingCartWidget.php

示例7: init

 public function init()
 {
     if ($this->title === NULL) {
         $this->title = Yum::t('Login');
     }
     parent::init();
 }
开发者ID:kumarsivarajan,项目名称:yii-user-management,代码行数:7,代码来源:LoginWidget.php

示例8: init

 /**
  * Class object initialization
  */
 public function init()
 {
     $this->title = CHtml::image(Yii::app()->request->baseUrl . '/images/portlets/overdue.png') . " " . Yii::t('portlet', 'UpcomingMilestonesTitle');
     $this->decorationCssClass = "portlet-header";
     $this->titleCssClass = "portlet-title";
     parent::init();
 }
开发者ID:lanzelotik,项目名称:celestic-community,代码行数:10,代码来源:UpcomingEvents.php

示例9: init

 public function init()
 {
     $this->title = Yum::t('Profile Comments');
     if (Yii::app()->user->isGuest) {
         return false;
     }
     parent::init();
 }
开发者ID:kumarsivarajan,项目名称:yii-user-management,代码行数:8,代码来源:ProfileCommentsWidget.php

示例10: init

 public function init()
 {
     if (Yum::module('message')->messageSystem === false) {
         return false;
     }
     $this->title = Yum::t('New messages');
     parent::init();
 }
开发者ID:kumarsivarajan,项目名称:yii-user-management,代码行数:8,代码来源:MessageWidget.php

示例11: init

 public function init()
 {
     $this->hideOnEmpty = true;
     $controllerId = Yii::app()->controller;
     if (method_exists($controllerId, 'getSubMenu')) {
         $this->menu = $controllerId->getSubMenu();
     }
     parent::init();
 }
开发者ID:kuzmina-mariya,项目名称:gallery,代码行数:9,代码来源:Submenu.php

示例12: init

 /**
  * Initializes the portlet.
  */
 public function init()
 {
     $assets = Yii::app()->assetManager->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . '../assets');
     $clientScript = Yii::app()->clientScript;
     $clientScript->registerCssFile($assets . '/poll.css');
     $this->_poll = $this->poll_id == 0 ? Poll::model()->latest()->find() : Poll::model()->findByPk($this->poll_id);
     if ($this->_poll) {
         $this->title = $this->_poll->title;
     }
     parent::init();
 }
开发者ID:josemanuel3dx,项目名称:SEMMIO,代码行数:14,代码来源:EPoll.php

示例13: init

 /**
  * Initializes the portlet.
  */
 public function init()
 {
     // Set the poll module (also kicks in the CSS via the module init)
     $this->_module = Yii::app()->getModule('poll');
     $this->attachBehavior('pollBehavior', 'poll.behaviors.PollBehavior');
     $this->_poll = $this->poll_id == 0 ? Poll::model()->with('choices', 'votes', 'totalVotes')->latest()->find() : Poll::model()->with('choices', 'votes', 'totalVotes')->findByPk($this->poll_id);
     if ($this->_poll) {
         $this->title = $this->_poll->title;
     }
     parent::init();
 }
开发者ID:phamvanvung1993,项目名称:yii-poll,代码行数:14,代码来源:EPoll.php

示例14: init

 public function init()
 {
     if (!Yum::module('profile')->enableProfileVisitLogging) {
         return false;
     }
     $this->title = Yum::t('Profile visits');
     if (Yii::app()->user->isGuest) {
         return false;
     }
     parent::init();
 }
开发者ID:Canyian,项目名称:yii-user-management-facebook,代码行数:11,代码来源:ProfileVisitWidget.php

示例15: init

 public function init()
 {
     $this->htmlOptions['class'] = 'dashboard-portlet';
     $this->decorationCssClass = 'dashboard-portlet-header';
     $this->titleCssClass = 'dashboard-portlet-title';
     $this->contentCssClass = 'dashboard-portlet-content';
     $this->title = $this->getTitle();
     $this->id = $this->getClassName();
     if (!$this->visible) {
         $this->htmlOptions['class'] .= ' dashboard-portlet-invisible';
     }
     parent::init();
 }
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:13,代码来源:DPortlet.php


注:本文中的CPortlet::init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。