prototype_helper

replace_html($id, $content)

34: 	public function replace_html($id, $content) {
35: 		$this->content .= 'Element.update("' . $id . '", "' . $this->content_fix($content) . '");';
36: 	}

File: lib/support/prototype_helper.php, #line 34

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

42: 	public function visual_effect($type, $id, $options = array ()) {
43: 		if (isset ($this->effects[$type])) {
44: 			$options = $this->render_prototype_options($options);
45: 			$this->content .= $effect = sprintf($this->effects[$type], $id, $options);
46: 		} else {
47: 			global $Logger;
48: 			$Logger->log("- Visual Effect '{$type}' doesn't exist.'");
49: 		}
50: 	}

File: lib/support/prototype_helper.php, #line 42

hide($id)

56: 	public function hide($id) {
57: 		$this->content .= 'Element.hide("' . $id . '");';
58: 	}

File: lib/support/prototype_helper.php, #line 56

show($id)

64: 	public function show($id) {
65: 		$this->content .= 'Element.show("' . $id . '");';
66: 	}

File: lib/support/prototype_helper.php, #line 64

alert($content)

72: 	public function alert($content) {
73: 		$this->content .= 'alert("' . $content . '");';
74: 	}

File: lib/support/prototype_helper.php, #line 72

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

80: 	public function call($function, $params = array ()) {
81: 		$param = '';
82: 		foreach ($params as $value) {
83: 			$param .= "'$value',";
84: 		}
85: 		$this->content .= $function . '(' . rtrim($param, ',') . ');';
86: 	}

File: lib/support/prototype_helper.php, #line 80

remove($id)

92: 	public function remove($id) {
93: 		$this->content .= 'Element.remove("' . $id . '");';
94: 	}

File: lib/support/prototype_helper.php, #line 92

insert_html($position, $id, $content)

100: 	public function insert_html($position, $id, $content) {
101: 		$this->content .= 'new Insertion.' . ucwords($position) . '("' . $id . '", "' . $this->content_fix($content) . '");';
102: 	}

File: lib/support/prototype_helper.php, #line 100

form($action, $id)

108: 	public function form($action, $id) {
109: 		if (strtolower($action) == 'reset') {
110: 			$this->content .= 'Form.reset("' . $id . '");';
111: 		}
112: 	}

File: lib/support/prototype_helper.php, #line 108

redirect_to($action, $target = ”)

118: 	public function redirect_to($action, $target = '') {
119: 		if (!empty ($target)) {
120: 			$this->content .= 'window.open("' . $action . '","' . $target . '");';
121: 		} else {
122: 			$this->content .= 'window.location.href = "' . $action . '";';
123: 		}
124: 	}

File: lib/support/prototype_helper.php, #line 118

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>