コード例 #1
0
 /**
  * Constructor
  *
  * @access	public
  * @return	null
  */
 public function __construct()
 {
     parent::__construct();
     $this->info['name'] = lang('default_state_name');
     $this->info['description'] = lang('default_state_desc');
     // -------------------------------------
     //	parse states
     // -------------------------------------
     $states = array_map('trim', preg_split('/[\\n\\r]+/', lang('list_of_us_states'), -1, PREG_SPLIT_NO_EMPTY));
     //need matching key => value pairs for the select values to be correct
     //for the output value we are removing the ' (AZ)' code for the value and the 'Arizona' code for the key
     foreach ($states as $key => $value) {
         $this->states[preg_replace('/[\\w|\\s]+\\(([a-zA-Z\\-_]+)\\)$/', "\$1", $value)] = preg_replace('/\\s+\\([a-zA-Z\\-_]+\\)$/', '', $value);
     }
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @access	public
  * @return	null
  */
 public function __construct()
 {
     parent::__construct();
     $this->entry_views[lang('file_field_uploads')] = 'file_uploads_view';
     $this->info['name'] = lang('default_file_name');
     $this->info['description'] = lang('default_file_desc');
     if (!isset(ee()->session->cache['freeform_file_uploads'])) {
         ee()->session->cache['freeform_file_uploads'] = array();
     }
     $this->cache =& ee()->session->cache['freeform_file_uploads'];
     $this->max_files = (int) @ini_get('max_file_uploads');
     //fall back to 1 on errors
     //hopefully this will never happen, but you never know
     if (!$this->max_files) {
         $this->max_files = 1;
     }
 }
コード例 #3
0
 /**
  * Constructor
  *
  * @access	public
  * @return	null
  */
 public function __construct()
 {
     parent::__construct();
     $this->info['name'] = lang('default_hidden_name');
     $this->info['description'] = lang('default_hidden_desc');
 }
コード例 #4
0
 /**
  * Constructor
  *
  * @access	public
  * @return	null
  */
 public function __construct()
 {
     parent::__construct();
     $this->info['name'] = lang('default_mailinglist_name');
     $this->info['description'] = lang('default_mailinglist_desc');
 }
コード例 #5
0
 /**
  * Constructor
  *
  * @access	public
  * @return	null
  */
 public function __construct()
 {
     parent::__construct();
     $this->info['name'] = lang('default_checkbox_group_name');
     $this->info['description'] = lang('default_checkbox_group_desc');
 }
コード例 #6
0
 public function __construct()
 {
     parent::__construct();
     ee()->load->model('subscribe_model');
 }