[puntoengine] r96 committed - * Added HttpResponse class

0 views
Skip to first unread message

punto...@googlecode.com

unread,
Nov 1, 2011, 4:52:59 PM11/1/11
to punto...@googlegroups.com
Revision: 96
Author: jba...@gmail.com
Date: Tue Nov 1 13:52:07 2011
Log: * Added HttpResponse class
http://code.google.com/p/puntoengine/source/detail?r=96

Added:
/trunk/puntoengine/core/http/HttpResponse.php

=======================================
--- /dev/null
+++ /trunk/puntoengine/core/http/HttpResponse.php Tue Nov 1 13:52:07 2011
@@ -0,0 +1,83 @@
+<?php
+/**
+ * Source code of HttpResponse class
+ * @category puntoengine
+ * @package core
+ * @subpackage http
+ * @author Juan Benavides Romero <juan.benav...@gmail.com>
+ * @since 0.4.0
+ */
+
+
+/**
+ * HttpResponse is a response for the Controller.
+ * HttpResponse can set the response html, cookies, sessions, and any
header
+ * @category puntoengine
+ * @package core
+ * @subpackage http
+ * @author Juan Benavides Romero <juan.benav...@gmail.com>
+ * @since 0.4.0
+ */
+class HttpResponse extends Object {
+ /**
+ * Controller name
+ * @var string
+ */
+ protected $controller;
+
+
+ /**
+ * Action name
+ * @var string
+ */
+ protected $action;
+
+
+
+ /**
+ * Default constructor
+ */
+ public function __construct() {
+ }//__construct
+
+
+
+ /**
+ * Return the controller name
+ * @return string Controller name
+ */
+ public function getController() {
+ return $this->controller;
+ }//getController
+
+
+
+ /**
+ * Set the controller name
+ * @param string $controller Controller name
+ */
+ public function setController($controller) {
+ $this->controller = $controller;
+ }//setController
+
+
+
+ /**
+ * Return the action name
+ * @return string Action name
+ */
+ public function getAction() {
+ return $this->action;
+ }//getAction
+
+
+
+ /**
+ * Set the action name
+ * @param string $action Action name
+ */
+ public function setAction($action) {
+ $this->action = $action;
+ }//setAction
+}//HttpResponse
+?>

Reply all
Reply to author
Forward
0 new messages