Example #1
0
 public function display($disableControls = false)
 {
     $layout = $this->getAreaLayoutObject();
     $a = $layout->getAreaObject();
     $as = new SubArea($this->getAreaLayoutColumnDisplayID(), $a);
     $as->setAreaDisplayName(t('Column %s', $this->getAreaLayoutColumnIndex() + 1));
     if ($disableControls) {
         $as->disableControls();
     }
     $c = $a->getAreaCollectionObject();
     $as->load($c);
     if (!$this->getAreaID()) {
         $this->setAreaID($as->getAreaID());
     }
     $as->display($c);
 }
Example #2
0
 /**
  * @param bool $disableControls
  */
 public function display($disableControls = false)
 {
     $layout = $this->getAreaLayoutObject();
     $a = $layout->getAreaObject();
     if (is_object($a)) {
         $as = new SubArea($this->getAreaLayoutColumnDisplayID(), $a->getAreaHandle(), $a->getAreaID());
         $as->setAreaGridMaximumColumns($this->getSubAreaMaximumColumns());
         $as->setAreaDisplayName(t('Column %s', $this->getAreaLayoutColumnIndex() + 1));
         if ($disableControls) {
             $as->disableControls();
         }
         $c = $a->getAreaCollectionObject();
         $as->load($c);
         if (!$this->getAreaID()) {
             $this->setAreaID($as->getAreaID());
         }
         $as->setSubAreaBlockObject($this->arLayout->getBlockObject());
         $as->display($c);
     }
 }