コード例 #1
0
ファイル: LinkMore.php プロジェクト: ktrzos/plethora
 /**
  * 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;
 }
コード例 #2
0
ファイル: Html.php プロジェクト: ktrzos/plethora
 /**
  * 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;
 }
コード例 #3
0
ファイル: ViewEntity.php プロジェクト: ktrzos/plethora
 /**
  * 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;
 }