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: 		$this->content .= 'alert("' . $content . '");';
67: 	}

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

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

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

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

remove($id)

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

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

insert_html($position, $id, $content)

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

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

form($action, $id)

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

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

redirect_to($action, $target = ”)

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

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

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>