PrototypeHelper

replace_html($id, $content)

31: 	function replace_html($id, $content) {
32: 		$this->content .= 'Element.update("' . $id . '", "' . $this->content_fix($content) . '");';
33: 	}

File: lib/controller/PrototypeHelper.php, #line 31

visual_effect($type, $id, $options = array ())

38: 	function visual_effect($type, $id, $options = array ()) {
39: 		if (isset ($this->effects[$type])) {
40: 			$options = $this->_render_options($options);
41: 			$this->content .= $effect = sprintf($this->effects[$type], $id, $options);
42: 		} else {
43: 			global $Logger;
44: 			$Logger->log("- Visual Effect '{$type}' doesn't exist.'");
45: 		}
46: 	}

File: lib/controller/PrototypeHelper.php, #line 38

hide($id)

51: 	function hide($id) {
52: 		$this->content .= 'Element.hide("' . $id . '");';
53: 	}

File: lib/controller/PrototypeHelper.php, #line 51

show($id)

58: 	function show($id) {
59: 		$this->content .= 'Element.show("' . $id . '");';
60: 	}

File: lib/controller/PrototypeHelper.php, #line 58

alert($content)

65: 	function alert($content) {
66: 		global $Logger;
67: 		$this->content .= 'alert("' . $content . '");';
68: 		$Logger->log("- Run alert() prototype function ");
69: 	}

File: lib/controller/PrototypeHelper.php, #line 65

call($function, $params = array ())

74: 	function call($function, $params = array ()) {
75: 		$param = '';
76: 		foreach ($params as $value) {
77: 			$param .= "'$value',";
78: 		}
79: 		$this->content .= $function . '(' . rtrim($param, ',') . ');';
80: 	}

File: lib/controller/PrototypeHelper.php, #line 74

remove($id)

85: 	function remove($id) {
86: 		$this->content .= 'Element.remove("' . $id . '");';
87: 	}

File: lib/controller/PrototypeHelper.php, #line 85

insert_html($position, $id, $content)

92: 	function insert_html($position, $id, $content) {
93: 		$this->content .= 'new Insertion.' . ucwords($position) . '("' . $id . '", "' . $this->content_fix($content) . '");';
94: 	}

File: lib/controller/PrototypeHelper.php, #line 92

form($action, $id)

99: 	function form($action, $id) {
100: 		if (strtolower($action) == 'reset') {
101: 			$this->content .= 'Form.reset("' . $id . '");';
102: 		}
103: 	}

File: lib/controller/PrototypeHelper.php, #line 99

redirect_to($action, $target = ”)

108: 	function redirect_to($action, $target = '') {
109: 		if (!empty ($target)) {
110: 			$this->content .= 'window.open("' . $action . '","' . $target . '");';
111: 		} else {
112: 			$this->content .= 'window.location.href = "' . $action . '";';
113: 		}
114:
115: 	}

File: lib/controller/PrototypeHelper.php, #line 108

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>