Overview

Namespaces

  • Simpletools
    • Autoload
    • Config
    • Db
      • Mysql
    • Event
    • Http
    • Mvc
    • Page
    • Store

Classes

  • Simpletools\Autoload\Loader
  • Simpletools\Config\Ini
  • Simpletools\Db\Mysql\Client
  • Simpletools\Db\Mysql\Iterator
  • Simpletools\Db\Mysql\Model
  • Simpletools\Db\Mysql\QueryBuilder
  • Simpletools\Db\Mysql\Result
  • Simpletools\Db\Mysql\Sql
  • Simpletools\Event\Event
  • Simpletools\Http\Ssl
  • Simpletools\Mvc\Common
  • Simpletools\Mvc\Controller
  • Simpletools\Mvc\Model
  • Simpletools\Mvc\Router
  • Simpletools\Mvc\RoutingHook
  • Simpletools\Mvc\View
  • Simpletools\Page\Layout
  • Simpletools\Store\Cookie
  • Simpletools\Store\Flash
  • Simpletools\Store\Session
  • Overview
  • Namespace
  • Class
 1: <?php
 2: /*
 3:  * Simpletools Framework.
 4:  * Copyright (c) 2009, Marcin Rosinski. (http://www.getsimpletools.com)
 5:  * All rights reserved.
 6:  *
 7:  * LICENCE
 8:  *
 9:  * Redistribution and use in source and binary forms, with or without modification,
10:  * are permitted provided that the following conditions are met:
11:  *
12:  * -    Redistributions of source code must retain the above copyright notice,
13:  *      this list of conditions and the following disclaimer.
14:  *
15:  * -    Redistributions in binary form must reproduce the above copyright notice,
16:  *      this list of conditions and the following disclaimer in the documentation and/or other
17:  *      materials provided with the distribution.
18:  *
19:  * -    Neither the name of the Simpletools nor the names of its contributors may be used to
20:  *      endorse or promote products derived from this software without specific prior written permission.
21:  *
22:  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
23:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24:  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
25:  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
28:  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
29:  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30:  *
31:  * @framework       Simpletools
32:  * @description     Secure connections handler
33:  * @copyright       Copyright (c) 2009 Marcin Rosinski. (http://www.getsimpletools.com)
34:  * @license         http://www.opensource.org/licenses/bsd-license.php - BSD
35:  *
36:  */
37:     namespace Simpletools\Event;
38: 
39:     use Simpletools\Event\Event;
40: 
41:     class Event
42:     {
43:         protected static $_listeners = array();
44: 
45:         public static function listen($event,$handler)
46:         {
47:             self::$_listeners[$event][] = $handler;
48:         }
49: 
50:         public static function fire($event)
51:         {
52:             if(isset(self::$_listeners[$event]))
53:             {
54:                 foreach(self::$_listeners[$event] as $handler)
55:                 {
56:                     if(is_string($handler))
57:                     {
58: 
59:                     }
60:                     elseif(is_callable($handler))
61:                     {
62:                         $handler();
63:                     }
64:                 }
65:             }
66:         }
67: 
68:         public static function queue($event)
69:         {
70: 
71:         }
72: 
73:         public static function unqueue()
74:         {
75: 
76:         }
77: 
78:         public static function forget($event)
79:         {
80: 
81:         }
82:     }
83: 
84: ?>
API documentation generated by ApiGen