コード例 #1
0
 /**
  * Create a new instance of a form page.
  * 
  * This will call the constructor for all Page objects and then set up some additional
  * member variables for forms.
  * @param string $title The title for this page.
  * @param string $defaultHTMLFile The default HTML file for this page.
  * @param mixed $access The role required to access this page.
  * @param array $files The list of template files to load for this page.
  */
 public function __construct($args, $request_remainder, $get = null, $post = null)
 {
     parent::__construct($args, $request_remainder, $get, $post);
     $this->template->addHeaderLink('I2CE_ClassValues.js');
     $this->template->addHeaderLink('I2CE_SubmitButton.js');
     $this->node_ids = array();
     $this->objects = array(self::EDIT_PRIMARY => false, self::EDIT_PARENT => false, self::EDIT_SECONDARY => array(), self::EDIT_CHILD => array());
 }
コード例 #2
0
 /**
  * Create a new instance of a form page.
  * 
  * This will call the constructor for all Page objects and then set up some additional
  * member variables for forms.
  * @param string $title The title for this page.
  * @param string $defaultHTMLFile The default HTML file for this page.
  * @param mixed $access The role required to access this page.
  * @param array $files The list of template files to load for this page.
  */
 public function __construct($args, $request_remainder, $get = null, $post = null)
 {
     parent::__construct($args, $request_remainder, $get, $post);
     $this->objects = array();
     $this->existing_objects = array();
     $this->node_ids = array();
     $this->existing_node_ids = array();
 }
コード例 #3
0
 /**
  * Create a new instance of a form page.
  * 
  * This will call the constructor for all Page objects and then set up some additional
  * member variables for forms.
  * @param string $title The title for this page.
  * @param string $defaultHTMLFile The default HTML file for this page.
  * @param mixed $access The role required to access this page.
  * @param array $files The list of template files to load for this page.
  */
 public function __construct($args, $request_remainder, $get = null, $post = null)
 {
     parent::__construct($args, $request_remainder, $get, $post);
     $this->editing = false;
     $this->factory = I2CE_FormFactory::instance();
     $this->invalid = false;
     $this->files = array();
     $this->current = array();
     $this->cache = array();
     // Default to not using a confirm page for this type of page.
     // If an arg exists, it will be set from the parent class
     if (!array_key_exists('confirm', $args)) {
         $this->usesConfirmPage = false;
     }
 }