Nick
10-03-2009, 12:28 PM
Here are some things that need to be changed in the documentation after Hotaru 0.7 is finished...
The following objects have been changed:
$hotaru->
$hotaru->lang['language_key'];
$hotaru->vars['key'];
$plugins->
$cage->
$db->
$current_user->Here is how they should be used in 0.7+:
Within classes:
$this->hotaru->
$this->hotaru->vars['key'];
$this->lang['language_key'];
$this->plugins->
$this->cage->
$this->db->
$this->current_user->
Within main or plugin templates:
$hotaru->
$hotaru->vars['key'];
$hotaru->lang['language_key'];
$hotaru->plugins->
$hotaru->cage->
$hotaru->db->
$hotaru->current_user->
Within admin templates:
$admin->
$admin->hotaru->
$admin->hotaru->vars['key'];
$admin->lang['language_key'];
$admin->plugins->
$admin->cage->
$admin->db->
$admin->current_user->
Other:
Setting classes no longer need the plugin folder parameter
All classes need the $hotaru object passed to their parent's constructor
userbase_default_permissions method in plugins needs updating
The url function is now part of the Hotaru class so needs calling with $hotaru->url() or $this->hotaru->url();
How to change the meta tags from a plugin
The following objects have been changed:
$hotaru->
$hotaru->lang['language_key'];
$hotaru->vars['key'];
$plugins->
$cage->
$db->
$current_user->Here is how they should be used in 0.7+:
Within classes:
$this->hotaru->
$this->hotaru->vars['key'];
$this->lang['language_key'];
$this->plugins->
$this->cage->
$this->db->
$this->current_user->
Within main or plugin templates:
$hotaru->
$hotaru->vars['key'];
$hotaru->lang['language_key'];
$hotaru->plugins->
$hotaru->cage->
$hotaru->db->
$hotaru->current_user->
Within admin templates:
$admin->
$admin->hotaru->
$admin->hotaru->vars['key'];
$admin->lang['language_key'];
$admin->plugins->
$admin->cage->
$admin->db->
$admin->current_user->
Other:
Setting classes no longer need the plugin folder parameter
All classes need the $hotaru object passed to their parent's constructor
userbase_default_permissions method in plugins needs updating
The url function is now part of the Hotaru class so needs calling with $hotaru->url() or $this->hotaru->url();
How to change the meta tags from a plugin