示例#1
0
 /**
  * Magic getter for BC compatibility
  *
  * Implement array access for user::lang.
  *
  * @param string	$param_name	Name of the BC component the user want to access
  *
  * @return array	The appropriate array
  *
  * @deprecated 3.2.0-dev (To be removed: 4.0.0)
  */
 public function __get($param_name)
 {
     if ($param_name === 'lang') {
         return $this->language->get_lang_array();
     } else {
         if ($param_name === 'help') {
             $help_array = $this->language->get_lang_array();
             return $help_array['__help'];
         }
     }
     return array();
 }