Exemplo n.º 1
0
 /**
  * Converts link to URL.
  * @return string
  */
 public function __toString()
 {
     try {
         return $this->component->link($this->destination, $this->params);
     } catch (Exception $e) {
         Debug::toStringException($e);
     }
 }
Exemplo n.º 2
0
 /**
  * Converts link to URL.
  * @return string
  */
 public function __toString()
 {
     try {
         return $this->component->link($this->destination, $this->params);
     } catch (Exception $e) {
         trigger_error("Exception in " . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
     }
 }
Exemplo n.º 3
0
 /**
  * Converts link to URL.
  * @return string
  */
 public function __toString()
 {
     try {
         return $this->component->link($this->destination, $this->args);
     } catch (Exception $e) {
         trigger_error($e->getMessage(), E_USER_WARNING);
         return '';
     }
 }
Exemplo n.º 4
0
 public function getUrl()
 {
     $param = $this->getParam();
     if (null === $param) {
         return $this->presenterComponent->link($this->destination);
     } else {
         return $this->presenterComponent->link($this->destination, $param);
     }
 }
Exemplo n.º 5
0
 public function __construct($factory)
 {
     parent::__construct();
     $this->factory = new Callback($factory);
 }