當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BlockController::__construct方法代碼示例

本文整理匯總了PHP中BlockController::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP BlockController::__construct方法的具體用法?PHP BlockController::__construct怎麽用?PHP BlockController::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BlockController的用法示例。


在下文中一共展示了BlockController::__construct方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

 function __construct($obj = NULL)
 {
     parent::__construct($obj);
     $c = $this->getCollectionObject();
     if (is_object($c)) {
         $this->cID = $c->getCollectionID();
     }
     if ($this->bID) {
         $db = Loader::db();
         $v = array($this->bID);
         $q = "select optionID, optionName, displayOrder from btSurveyOptions where bID = ? order by displayOrder asc";
         $r = $db->query($q, $v);
         $this->options = array();
         if ($r) {
             while ($row = $r->fetchRow()) {
                 $opt = new BlockPollOption();
                 $opt->optionID = $row['optionID'];
                 $opt->cID = $this->cID;
                 $opt->optionName = $row['optionName'];
                 $opt->displayOrder = $row['displayOrder'];
                 $this->options[] = $opt;
             }
         }
     }
 }
開發者ID:VonUniGE,項目名稱:concrete5-1,代碼行數:25,代碼來源:controller.php

示例2: t

 function __construct($obj = null)
 {
     parent::__construct($obj);
     if (!$this->title) {
         $this->title = t("My Video");
     }
 }
開發者ID:VonUniGE,項目名稱:concrete5-1,代碼行數:7,代碼來源:controller.php

示例3: switch

 function __construct($obj = null)
 {
     if (is_object($obj)) {
         switch (strtolower(get_class($obj))) {
             case "blocktype":
                 // instantiating autonav on a particular collection page, instead of adding
                 // it through the block interface
                 $this->bID = null;
                 break;
             case "block":
                 // block
                 // standard block object
                 $this->bID = $obj->bID;
                 break;
         }
     }
     $c = Page::getCurrentPage();
     if (is_object($c)) {
         if ($c->getCollectionPointerOriginalID() > 0) {
             $this->cID = $c->getCollectionPointerOriginalID();
         } else {
             $this->cID = $c->getCollectionID();
         }
         $this->cParentID = $c->getCollectionParentID();
     }
     parent::__construct($obj);
 }
開發者ID:Zyqsempai,項目名稱:amanet,代碼行數:27,代碼來源:autonav.php

示例4: t

 function __construct($obj = null)
 {
     parent::__construct($obj);
     if ($this->title == '') {
         $this->title = t("Search");
     }
 }
開發者ID:rmxdave,項目名稱:concrete5,代碼行數:7,代碼來源:controller.php

示例5: __construct

	public function __construct($b = null){ 
		parent::__construct($b);
		//$this->bID = intval($this->_bID);
		if(is_string($this->thankyouMsg) && !strlen($this->thankyouMsg)){ 
			$this->thankyouMsg = $this->getDefaultThankYouMsg();
		}
	}
開發者ID:rii-J,項目名稱:concrete5-de,代碼行數:7,代碼來源:controller.php

示例6:

 function __construct($obj = null)
 {
     parent::__construct($obj);
     $html = Loader::helper('html');
     //Load jQiery 1.5 and reset C5 Jquery after that
     $this->addHeaderItem('<script type="text/javascript">var jqC5 = jQuery.noConflict(true);</script>');
     $this->addHeaderItem($html->javascript($this->getBlockPath() . '/libs/jquery.min.js'));
     $this->addHeaderItem('<script type="text/javascript">var jq15s = jQuery.noConflict(true);$=jqC5;jQuery=jqC5</script>');
 }
開發者ID:hanicker,項目名稱:Concrete5-EasySlider,代碼行數:9,代碼來源:controller.php

示例7: __construct

 public function __construct($obj = null)
 {
     parent::__construct($obj);
 }
開發者ID:homer6,項目名稱:concrete5-mirror,代碼行數:4,代碼來源:controller.php

示例8: __construct

 public function __construct($b = null)
 {
     parent::__construct($b);
     //$this->bID = intval($this->_bID);
 }
開發者ID:s5chris,項目名稱:blocks,代碼行數:5,代碼來源:controller.php


注:本文中的BlockController::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。