Beispiel #1
0
 public function __get($var)
 {
     if ($var == 'url') {
         $row = $this->_getLinkRow();
         if (!$row || !$row->mail) {
             return '';
         }
         return self::createHref($row);
     } else {
         if ($var == 'url_mail_html') {
             $row = $this->_getLinkRow();
             if (!$row || !$row->mail) {
                 return '';
             }
             return self::createHref($row, false);
         } else {
             if ($var == 'url_mail_txt') {
                 $row = $this->_getLinkRow();
                 return !$row || !$row->mail ? '' : $row->mail;
             } else {
                 if ($var == 'rel') {
                     return '';
                 } else {
                     return parent::__get($var);
                 }
             }
         }
     }
 }
 public function __get($var)
 {
     if ($var == 'url' || $var == 'rel') {
         return $this->getChildComponent('_video')->{$var};
     } else {
         return parent::__get($var);
     }
 }
 public function __get($var)
 {
     if ($var == 'url') {
         $row = $this->_getLinkRow();
         if (!isset($row->target) || !$row->target) {
             return '';
         }
         return $row->target;
     } else {
         return parent::__get($var);
     }
 }
 public function __get($var)
 {
     if ($var == 'url') {
         $anchor = $this->getComponent()->getRow()->anchor;
         if ($anchor) {
             return '#' . $anchor;
         }
         return '';
     } else {
         if ($var == 'rel') {
             return '';
         } else {
             return parent::__get($var);
         }
     }
 }
Beispiel #5
0
 public function __get($var)
 {
     if ($var == 'url') {
         if (!$this->_getLinkData()->getComponent()->hasContent()) {
             return '';
         }
         return $this->_getLinkData()->url;
     } else {
         if ($var == 'rel') {
             if (!$this->_getLinkData()->getComponent()->hasContent()) {
                 return '';
             }
             return $this->_getLinkData()->rel;
         } else {
             return parent::__get($var);
         }
     }
 }
Beispiel #6
0
 public function __get($var)
 {
     if ($var == 'url') {
         if (!$this->getLinkedData()) {
             return '';
         }
         $ret = $this->getLinkedData()->url;
         if ($this->_anchor) {
             $ret .= '#' . $this->_anchor;
         }
         return $ret;
     } else {
         if ($var == 'rel') {
             if (!$this->getLinkedData()) {
                 return '';
             }
             return $this->getLinkedData()->rel;
         } else {
             return parent::__get($var);
         }
     }
 }