Пример #1
0
	/**	
	* Adds any query string fragments from the publication module to the cleanup_rules.
	* @return array $cleanup_rules
	*/
	function get_cleanup_rules()
	{
		$this->cleanup_rules = parent::get_cleanup_rules();
		foreach($this->additional_query_string_frags  as $fragment)
		{
			$this->cleanup_rules[$fragment . '_id'] = array('function' => 'turn_into_int');
		}
		return $this->cleanup_rules;
	}
Пример #2
0
 /**
  * Add cleanup rules specific to the gallery module
  * @return array
  */
 function get_cleanup_rules()
 {
     $this->cleanup_rules['original_access'] = array('function' => 'turn_into_int');
     return parent::get_cleanup_rules();
 }
Пример #3
0
 function get_cleanup_rules()
 {
     $cleanup_rules = array('classified_mode' => array('function' => 'check_against_array', 'extra_args' => array('add_item', 'submit_success', 'delete_item')));
     return array_merge(parent::get_cleanup_rules(), $cleanup_rules);
 }
Пример #4
0
 function get_cleanup_rules()
 {
     $this->cleanup_rules = parent::get_cleanup_rules();
     $this->cleanup_rules['order_projects'] = array('function' => 'check_against_array', 'extra_args' => array_keys($this->orderables));
     return $this->cleanup_rules;
 }