Beispiel #1
0
 /**
  * Get View with Imitation content.
  *
  * @access     public
  * @return    View
  * @since      1.0.0-alpha
  * @version    1.0.0-alpha
  */
 public function getContentView()
 {
     $oContent = parent::getContentView();
     $oModel = $this->oEntity->getModel();
     $sURL = $oModel->url();
     $mValue = $oModel->{$this->sModelFieldAsTitle};
     $sTitle = $this->sTitlePrefix . $mValue . $this->sTitleSuffix;
     $oContent->bind('sURL', $sURL);
     $oContent->bind('sTitle', $sTitle);
     $oContent->bind('sValue', $this->sValue);
     return $oContent;
 }
Beispiel #2
0
 /**
  * Get View with Imitation content.
  *
  * @access     public
  * @return    View
  * @since      1.0.0-alpha
  * @version    1.0.0-alpha
  */
 public function getContentView()
 {
     $oContent = parent::getContentView();
     $oContent->bind('sContent', $this->sValue);
     return $oContent;
 }
Beispiel #3
0
 /**
  * Add new field imitation.
  *
  * @access     public
  * @param    ViewFieldImitation $oFieldImitation
  * @param    string             $sBeforeField
  * @return    ViewList
  * @since      1.0.0-alpha
  * @version    1.0.0-alpha
  */
 public function addFieldImitation(ViewFieldImitation $oFieldImitation, $sBeforeField)
 {
     $oFieldImitation->setEntity($this);
     $sViewOutput = $oFieldImitation->getView()->render();
     $oField = empty($sBeforeField) ? $this->getLastField() : $this->getField($sBeforeField);
     $oField->addToSuffix($sViewOutput);
     return $this;
 }