Example #1
0
 /**
  *@Decription : Constructor
  *
  *@Param : int		which Db will be connected to
  *
  *@return: void
  */
 public function oracle($dbSeq = 0)
 {
     global $MY_db_config;
     global $MY_lang;
     include_once MY_ROOT_PATH . "language/class/" . MY_kernel::getUserLang() . "/oracle.lang.php";
     //load class language
     $this->connect($MY_db_config['oracle'][$dbSeq]);
 }
Example #2
0
 /**
  *@Description :
  *
  *@return: constractor
  */
 public function MY_smarty()
 {
     MY_kernel::loadLang('class', 'smarty');
     //load class language
     $this->_smarty = new Smarty();
     $this->_smarty->left_delimiter = $this->left_delimiter;
     $this->_smarty->right_delimiter = $this->right_delimiter;
     $this->_smarty->force_compile = $this->force_compile;
     $this->_smarty->template_dir = MY_ROOT_PATH . $this->template_dir;
     $this->_smarty->compile_dir = MY_ROOT_PATH . $this->compile_dir;
 }
Example #3
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     global $My_Lang;
     MY_kernel::loadLang('plugin', 'listItems');
     //load plugin language
     $this->lang =& $My_Lang->plugin['listItems'];
 }