Exemple #1
0
 /**
  *@Description : constructor
  *
  *@return: constractor
  */
 public function __construct()
 {
     global $My_Lang;
     My_Kernel::loadLang('plugin', 'formAction');
     //load class language
     $this->lang =& $My_Lang->plugin['formAction'];
 }
Exemple #2
0
 /**
  *@constructor : set root path.
  */
 public function __construct($rootPath = MY_ROOT_PATH)
 {
     global $My_Lang;
     My_Kernel::loadLang('class', 'file');
     //load class language
     $this->initialize();
     return;
 }
Exemple #3
0
 /**
  *@Description : constructor
  *
  *@return: constractor
  */
 public function __construct($db)
 {
     global $My_Lang;
     My_Kernel::loadLang('class', 'page');
     //load class language
     if (is_object($db)) {
         $this->_db = $db;
     }
 }
Exemple #4
0
 /**
  *@Description : constructor
  *
  *@return: constractor
  */
 public function __construct($db)
 {
     global $My_Lang;
     global $My_Sql;
     $this->_SQL =& $My_Sql;
     My_Kernel::loadLang('module', 'news');
     //load class language
     parent::General($db);
 }
Exemple #5
0
 /**
  *@Description : constructor
  *
  *@return: constractor
  */
 public function __construct($db)
 {
     global $My_Lang;
     global $My_Sql;
     require_once dirname(__FILE__) . '/../news.sql.php';
     $this->_SQL =& $My_Sql;
     My_Kernel::loadLang('module', 'news');
     //load class language
     parent::General($db);
 }
Exemple #6
0
 /**
  *@Description : constructor
  *
  *@return: constractor
  */
 public function __construct(&$db)
 {
     global $My_Lang;
     My_Kernel::loadLang('class', 'menu');
     //load class language
     $this->_lang =& $My_Lang->class['menu'];
     if (is_object($db)) {
         $this->_db = $db;
     }
 }
Exemple #7
0
 /**
  *@Decription : load specify type database class
  *
  *@Param : string	database type
  *
  *@return: constructor
  */
 public function __construct(&$db)
 {
     global $_system;
     My_Kernel::loadLang('class', 'group');
     //load class language
     $this->_db = $db;
     if (isset($_system['db_int_seperator'])) {
         $this->_intSeparator = $_system['db_int_seperator'];
     }
 }
Exemple #8
0
 /**
  *@Decription : load specify type database class
  *
  *@Param : string    database type
  *
  *@return: constructor
  */
 public function MY_user($db)
 {
     global $_system;
     global $My_Kernel;
     My_Kernel::loadLang('class', 'user');
     //load class language
     $this->_db = $db;
     $this->_groupObj = $My_Kernel->getClass('group', $db);
     if (isset($_system['db_int_seperator'])) {
         $this->_groupSeparator = $_system['db_int_seperator'];
     }
 }
Exemple #9
0
 /**
  *@Description :
  *
  *@return: constractor
  */
 public function __construct($templaterName, $options = null)
 {
     My_Kernel::loadLang('class', 'templater');
     //load class language
     switch (strtolower($templaterName)) {
         case 'smarty':
         default:
             require_once dirname(__FILE__) . '/templates/MY_smarty.class.php';
             $this->_templater = new MY_smarty();
             if ($options) {
                 $this->setOptions($options);
             }
             break;
     }
 }
Exemple #10
0
 /**
  *@Decription : load specify type database class
  *
  *@Param : string	database type
  *@Param : int		which Db will be connected to
  *
  *@return: constractor
  */
 public function __construct()
 {
     My_Kernel::loadLang('class', 'html');
     //load class language
 }