Esempio n. 1
0
 public function test_magiccall()
 {
     $model = new Tx_Rnbase_Domain_Model_Base(array('uid' => 1, 'test_value' => 45));
     self::assertEquals(45, $model->getTestValue());
 }
 /**
  * Link zur Detailseite erzeugen
  *
  * @param Tx_Rnbase_Domain_Model_Base $item
  * @param tx_rnbase_util_FormTool $formTool
  * @param int $currentPid
  * @param Tx_Rnbase_Domain_Model_DataInterface $options
  * @return string
  */
 public function makeLink($item, $formTool, $currentPid, $options)
 {
     $uidkey = $options->getShowDetailsKey() ? $options->getShowDetailsKey() : 'showDetails[' . $item->getTableName() . ']';
     $label = $options->hasShowDetailsLabel() ? $options->getShowDetailsLabel() : '###LABEL_SHOW_DETAILS###';
     return $formTool->createSubmit($uidkey . '[' . $item->uid . ']', $label);
 }