Overview

Namespaces

  • Application
    • Controller
    • Model
      • DAO
        • Impl
      • Service
        • Impl
  • Define
    • Core
    • DBDrivers
    • Exceptions
    • IUtilities
    • Traits
    • Utilities
  • None

Classes

  • Application\Controller\ApplicationController
  • Application\Controller\ErrorController
  • Application\Controller\IndexController
  • Application\Model\DAO\ApplicationDAO
  • Application\Model\DAO\Impl\IndexDAO
  • Application\Model\Service\ApplicationService
  • Application\Model\Service\Impl\IndexService
  • Define\Core\BaseController
  • Define\Core\BaseDAO
  • Define\Core\BaseModel
  • Define\Core\BaseService
  • Define\Core\Framework
  • Define\Core\ObjectContainer
  • Define\Core\Router
  • Define\Core\View
  • Define\DBDrivers\DatabaseBean
  • Define\DBDrivers\DatabaseFactory
  • Define\DBDrivers\MONGODBDriver
  • Define\DBDrivers\MSSQLDriver
  • Define\DBDrivers\MYSQLDriver
  • Define\DBDrivers\MYSQLIDriver
  • Define\DBDrivers\ORACLEDriver
  • Define\DBDrivers\PDODriver
  • Define\DBDrivers\POSTGREDriver
  • Define\DBDrivers\SQLITEDriver
  • Define\IUtilities\PasswordHelper
  • Define\Utilities\ErrorExceptionHandler
  • Define\Utilities\Localization
  • Define\Utilities\Logger
  • Define\Utilities\Session
  • PHPMailer
  • SMTP

Interfaces

  • Define\Core\IBaseDAO
  • Define\Core\IBaseModel
  • Define\Core\IBaseService
  • Define\Core\IDefine
  • Define\Core\IRouter
  • Define\Core\IView
  • Define\DBDrivers\IDatabase
  • Define\Exceptions\IException
  • Define\Utilities\IUtilities

Traits

  • Define\Traits\SingletonTrait

Exceptions

  • Define\Exceptions\FileNotFoundException
  • Define\Exceptions\FrameworkException
  • Define\Exceptions\LoggerException
  • Define\Exceptions\NullPointerException
  • Define\Exceptions\RuntimeException
  • phpmailerException

Functions

  • __autoload
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Define\Core;
 3: 
 4: if(!defined('DIRECT_ACCESS')) {
 5:     die("Direct access is forbidden.");
 6: }
 7: 
 8: /**
 9:  * BASE MODEL
10:  *
11:  * Base Model class. Shared by both BaseService and BaseDAO.
12:  *  
13:  * @category Define
14:  * @package Core
15:  * @author Nitesh Apte <me@niteshapte.com>
16:  * @copyright 2015 Nitesh Apte
17:  * @version 1.0.0
18:  * @since 1.0.0
19:  * @license https://www.gnu.org/licenses/gpl.txt GNU General Public License v3
20:  * 
21:  * This program is free software: you can redistribute it and/or modify
22:  * it under the terms of the GNU General Public License as published by
23:  * the Free Software Foundation, either version 3 of the License, or
24:  * (at your option) any later version.
25:  *
26:  * This program is distributed in the hope that it will be useful,
27:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29:  * GNU General Public License for more details.
30:  *
31:  * You should have received a copy of the GNU General Public License
32:  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
33:  */
34: abstract class BaseModel implements IBaseModel, IDefine {
35:     
36:     /**
37:      * Object container instance
38:      * @var ObjectContainer $container
39:      */
40:     protected $container = null;
41:     
42:     /**
43:      * Initialize the Object Container.
44:      * 
45:      * @param none
46:      * @return void
47:      */
48:     public function __construct() {
49:         $this->container = ObjectContainer::getInstance();
50:     }
51: }
API documentation generated by ApiGen