コード例 #1
0
ファイル: Base.php プロジェクト: nao-pon/impresscms
 /**
  * Constructor
  * Sets all the values / variables for the IcmsForm class
  * @param	string    &$target                  reference to targetobject (@todo, which object will be passed here?)
  * @param	string    $form_name                the form name
  * @param	string    $form_caption             the form caption
  * @param	string    $form_action              the form action
  * @param	string    $form_fields              the form fields
  * @param	string    $submit_button_caption    whether to add a caption to the submit button
  * @param	bool      $cancel_js_action         whether to invoke a javascript action when cancel button is clicked
  * @param	bool      $captcha                  whether to add captcha
  */
 public function __construct(&$target, $form_name, $form_caption, $form_action, $form_fields = NULL, $submit_button_caption = FALSE, $cancel_js_action = FALSE, $captcha = FALSE)
 {
     $this->targetObject =& $target;
     $this->form_fields = $form_fields;
     $this->_cancel_js_action = $cancel_js_action;
     $this->_captcha = $captcha;
     $this->_form_name = $form_name;
     $this->_form_caption = $form_caption;
     $this->_submit_button_caption = $submit_button_caption;
     if (!isset($form_action)) {
         $form_action = xoops_getenv('SCRIPT_NAME');
     }
     parent::__construct($form_caption, $form_name, $form_action);
     $this->setExtra('enctype="multipart/form-data"');
     $this->createElements();
     //if ($captcha) $this->addCaptcha();
     $this->createPermissionControls();
     $this->createButtons($form_name, $form_caption, $submit_button_caption);
 }
コード例 #2
0
 public function __construct($title, $name, $action, $method = "post", $addtoken = false)
 {
     parent::__construct($title, $name, $action, $method, $addtoken);
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_form_Theme', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }