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. (https://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:  * @copyright       Copyright (c) 2009 Marcin Rosinski. (http://www.getsimpletools.com)
33:  * @license         http://www.opensource.org/licenses/bsd-license.php - BSD
34:  * @version         Ver: 2.0.15 2014-12-31 10:45
35:  * 
36:  */
37: 
38:     namespace Simpletools\Db\Mysql;
39: 
40:     use \Simpletools\Db\Mysql\QueryBuilder;
41: 
42:     class Model extends \Simpletools\Db\Mysql\Client
43:     {
44:         public function __construct($settings=false)
45:         {
46:             if($settings)
47:             {
48:                 parent::__construct($settings);
49:             }
50:         }
51: 
52:         public function __get($table)
53:         {
54:             return new QueryBuilder($table,$this);
55:         }
56: 
57:         public function __call($table,$args)
58:         {
59:             return new QueryBuilder($table,$this,$args);
60:         }
61:     }
62: ?>
API documentation generated by ApiGen