ActionController

redirect_to($options = array ())

7: 	function redirect_to($options = array ()) {
8: 		if (is_array($options)) {
9: 			$opt['location'] = '';
10: 			$opt['url'] = $options;
11: 			$this->Controller = $this; // This must be fixed. Need figure out how to deal with OptionsHelper class
12: 			$opt = $this->_set_options($opt);
13: 			Response :: redirect_to($opt['location']);
14: 		}
15: 		elseif (is_string($options)) {
16: 			Response :: redirect_to($options);
17: 		}
18: 	}

File: lib/controller/ActionController.php, #line 7

render($options = array ())

23: 	function render($options = array ()) {
24: 		foreach ($this as $key => $value) {
25: 			if (!preg_match('/^_/', $key)) {
26: 				$$key = $value;
27: 			}
28: 		}
29:
30: 		if (isset ($options['action'])) {
31: 			$this->action = $options['action'];
32: 		}
33: 		elseif (isset ($options['partial']) && !isset ($options['ajax'])) {
34: 			include $this->partial_localization($options['partial']);
35: 		}
36: 		elseif (isset ($options['partial']) && isset ($options['ajax'])) {
37: 			return $this->render_to_string($options['partial']);
38: 		}
39: 		elseif ($options['nothing']) {
40: 			$this->render_action = false;
41: 		}
42: 	}

File: lib/controller/ActionController.php, #line 23

render_partial($partial)

47: 	function render_partial($partial) {
48: 		return $this->render(array (
49: 			'partial' => $partial
50: 		));
51: 	}

File: lib/controller/ActionController.php, #line 47

render_to_string($partial)

56: 	function render_to_string($partial) {
57: 		foreach ($this as $key => $value) {
58: 			if (!preg_match('/^_/', $key)) {
59: 				$$key = $value;
60: 			}
61: 		}
62:
63: 		ob_start();
64: 		include $this->partial_localization($partial);
65: 		$content = ob_get_contents();
67: 		ob_end_clean();
68: 		return addslashes($content);
69: 	}

File: lib/controller/ActionController.php, #line 56

inspect($params)

104: 	function inspect($params) {
105: 		return var_export($params, true);
106: 	}

File: lib/controller/ActionController.php, #line 104

field_error($param)

111: 	function field_error($param) {
112: 		$table_name = split('/', $param);
113: 		if (is_object($this-> $table_name[0])) {
114: 			return $this-> $table_name[0]->field_error($param);
115: 		}
116: 	}

File: lib/controller/ActionController.php, #line 111

render_component($options = array ())

121: 	function render_component($options = array ()) {
122: 		return Components :: render_component($options);
123: 	}

File: lib/controller/ActionController.php, #line 121

send_file($file = ”, $name = false)

128: 	function send_file($file = '', $name = false) {
129: 		Response :: send_file($file, $name);
130: 	}

File: lib/controller/ActionController.php, #line 128

email()

135: 	function email() {
136: 		ActionMailer :: email();
137: 	}

File: lib/controller/ActionController.php, #line 135

flash($variable = false, $data = false)

142: 	function flash($variable = false, $data = false) {
143: 		if ($variable && $data) {
145: 			$_SESSION['flash'][$variable] = $data;
146: 		}
147: 		elseif ($variable && !$data) {
148: 			if (isset ($_SESSION['flash'][$variable])) {
149: 				return $_SESSION['flash'][$variable];
150: 			}
151: 		}
152: 	}

File: lib/controller/ActionController.php, #line 142

translate($text)

157: 	function translate($text) {
158: 		return $this->Translator->translate($text);
159: 	}

File: lib/controller/ActionController.php, #line 157

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>