コード例 #1
0
ファイル: controller.php プロジェクト: VonUniGE/concrete5-1
 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;
             }
         }
     }
 }
コード例 #2
0
ファイル: controller.php プロジェクト: VonUniGE/concrete5-1
 function __construct($obj = null)
 {
     parent::__construct($obj);
     if (!$this->title) {
         $this->title = t("My Video");
     }
 }
コード例 #3
0
ファイル: autonav.php プロジェクト: Zyqsempai/amanet
 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);
 }
コード例 #4
0
ファイル: controller.php プロジェクト: rmxdave/concrete5
 function __construct($obj = null)
 {
     parent::__construct($obj);
     if ($this->title == '') {
         $this->title = t("Search");
     }
 }
コード例 #5
0
ファイル: controller.php プロジェクト: rii-J/concrete5-de
	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();
		}
	}
コード例 #6
0
 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>');
 }
コード例 #7
0
 public function __construct($obj = null)
 {
     parent::__construct($obj);
 }
コード例 #8
0
ファイル: controller.php プロジェクト: s5chris/blocks
 public function __construct($b = null)
 {
     parent::__construct($b);
     //$this->bID = intval($this->_bID);
 }