Example #1
0
 /**
  * 
  * Returns an escaped href or src attribute value for an action URI.
  * 
  * @param Solar_Uri_Action|string $spec The href or src specification.
  * 
  * @return string
  * 
  */
 public function actionHref($spec)
 {
     if ($spec instanceof Solar_Uri_Action) {
         // already an action uri object
         $href = $spec->get();
     } else {
         // build-and-fetch the string as an action spec
         $href = $this->_uri->quick($spec);
     }
     return $this->_view->escape($href);
 }