FORMidable RAD Framework

class.tx_rdtbutton.php

00001 <?php
00009 class tx_rdtbutton extends formidable_mainrenderlet {
00010         
00011         var $sMajixClass = "Button";
00012         var $aLibs = array(
00013                 "rdt_button_class" => "res/js/button.js",
00014         );
00015 
00016 
00017         function _render() {
00018                 return $this->_renderReadOnly();
00019         }
00020 
00021         function _renderReadOnly() {
00022 
00023                 $this->skin_init("readonly");
00024 
00025                 $sLabel = $this->oForm->_getLLLabel(
00026                         $this->_navConf("/label")
00027                 );
00028 
00029                 return $this->skin_apply(
00030                         array(
00031                                 "label"         => $sLabel,
00032                                 "name"          => $this->_getElementHtmlName(),
00033                                 "id"            => $this->_getElementHtmlId(),
00034                                 "value"         => $sLabel,
00035                                 "addparams"     => $this->_getAddInputParams(),
00036                         ),
00037                         array(
00038                                 "input" => "<input type=\"button\" name=\"{name}\" id=\"{id}\" value=\"{value}\" {addparams} />",
00039                                 "__compiled" => "{input}",
00040                         )
00041                 );
00042         }
00043 
00044         function _renderOnly() {
00045                 return TRUE;
00046         }
00047         
00048         function _readOnly() {
00049                 return TRUE;
00050         }
00051 
00052         function _activeListable() {            // listable as an active HTML FORM field or not in the lister
00053                 return $this->oForm->_defaultTrue("/activelistable/", $this->aElement);
00054         }
00055 }
00056 
00057 
00058         if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/ameos_formidable/api/base/rdt_button/api/class.tx_rdtbutton.php"])     {
00059                 include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/ameos_formidable/api/base/rdt_button/api/class.tx_rdtbutton.php"]);
00060         }
00061 
00062 ?>


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6