@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | class Url{ |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | class Session{ |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -22,23 +22,23 @@ discard block |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | class Router { |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @var array $pattern: The list of URIs to validate against |
|
| 31 | - */ |
|
| 30 | + * @var array $pattern: The list of URIs to validate against |
|
| 31 | + */ |
|
| 32 | 32 | private $pattern = array(); |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @var array $callback: The list of callback to call |
|
| 36 | - */ |
|
| 35 | + * @var array $callback: The list of callback to call |
|
| 36 | + */ |
|
| 37 | 37 | private $callback = array(); |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @var string $uriTrim: The char to remove from the URIs |
|
| 41 | - */ |
|
| 40 | + * @var string $uriTrim: The char to remove from the URIs |
|
| 41 | + */ |
|
| 42 | 42 | protected $uriTrim = '/\^$'; |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -94,9 +94,9 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function __construct(){ |
| 96 | 96 | $this->logger =& class_loader('Log', 'classes'); |
| 97 | - $this->logger->setLogger('Library::Router'); |
|
| 98 | - $routesPath = CONFIG_PATH . 'routes.php'; |
|
| 99 | - $this->logger->debug('Loading of routes configuration file --> ' . $routesPath . ' ...'); |
|
| 97 | + $this->logger->setLogger('Library::Router'); |
|
| 98 | + $routesPath = CONFIG_PATH . 'routes.php'; |
|
| 99 | + $this->logger->debug('Loading of routes configuration file --> ' . $routesPath . ' ...'); |
|
| 100 | 100 | if(file_exists($routesPath)){ |
| 101 | 101 | $this->logger->info('Found routes configuration file --> ' . $routesPath. ' now load it'); |
| 102 | 102 | require_once $routesPath; |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * Add the URI and callback to the list of URIs to validate |
|
| 151 | - * |
|
| 152 | - * @param string $uri the request URI |
|
| 153 | - * @param object $callback the callback function |
|
| 154 | - */ |
|
| 150 | + * Add the URI and callback to the list of URIs to validate |
|
| 151 | + * |
|
| 152 | + * @param string $uri the request URI |
|
| 153 | + * @param object $callback the callback function |
|
| 154 | + */ |
|
| 155 | 155 | public function add($uri, $callback) { |
| 156 | 156 | $uri = trim($uri, $this->uriTrim); |
| 157 | 157 | if(in_array($uri, $this->pattern)){ |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | class Security{ |
| 28 | 28 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * This class represent the event dispatcher management, permit to record the listener and |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | class Response{ |
| 28 | 28 | |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | private $_currentUrlCacheKey = null; |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * Whether we can compress the output using Gzip |
|
| 61 | - * @var boolean |
|
| 62 | - */ |
|
| 60 | + * Whether we can compress the output using Gzip |
|
| 61 | + * @var boolean |
|
| 62 | + */ |
|
| 63 | 63 | private static $_canCompressOutput = false; |
| 64 | 64 | |
| 65 | 65 | /** |
@@ -236,8 +236,8 @@ discard block |
||
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | - * Send the final page output to user |
|
| 240 | - */ |
|
| 239 | + * Send the final page output to user |
|
| 240 | + */ |
|
| 241 | 241 | public function renderFinalPage(){ |
| 242 | 242 | $logger = static::getLogger(); |
| 243 | 243 | $obj = & get_instance(); |
@@ -301,8 +301,8 @@ discard block |
||
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | /** |
| 304 | - * Send the final page output to user if is cached |
|
| 305 | - */ |
|
| 304 | + * Send the final page output to user if is cached |
|
| 305 | + */ |
|
| 306 | 306 | public function renderFinalPageFromCache(&$cache){ |
| 307 | 307 | $logger = static::getLogger(); |
| 308 | 308 | $url = $this->_currentUrl; |
@@ -362,9 +362,9 @@ discard block |
||
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | /** |
| 365 | - * Get the final page to be rendered |
|
| 366 | - * @return string |
|
| 367 | - */ |
|
| 365 | + * Get the final page to be rendered |
|
| 366 | + * @return string |
|
| 367 | + */ |
|
| 368 | 368 | public function getFinalPageRendered(){ |
| 369 | 369 | return $this->_pageRender; |
| 370 | 370 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | class Loader{ |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * This class represent the event detail to dispatch to correspond listener |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * You should have received a copy of the GNU General Public License |
| 23 | 23 | * along with this program; if not, write to the Free Software |
| 24 | 24 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | - */ |
|
| 25 | + */ |
|
| 26 | 26 | |
| 27 | 27 | class Request{ |
| 28 | 28 | |