[ Index ]
 

Code source de Phorum 5.1.25

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/docs/ -> creating_mods.txt (sommaire)

(pas de description)

Poids: 2026 lignes (78 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 3 classes

under:: (7 méthodes):
  phorum_mod_foo_some_hook()
  names()
  name()
  phorum_mod_foo_before_editor()
  phorum_mod_foo_before_register()
  phorum_mod_foo_cc_save_user()
  phorum_mod_foo_check_post()

option:: (3 méthodes):
  check_foo()
  phorum_mod_foo_user_check_login()
  phorum_mod_foo_user_check_login()

at:: (4 méthodes):
  phorum_mod_foo_tpl_editor_after_subject()
  phorum_mod_foo_tpl_cc_usersettings()
  phorum_mod_foo_tpl_editor_attachment_buttons()
  phorum_mod_foo_tpl_editor_buttons()

Définit 4 fonctions

  phorum_mod_foo_some_hook()
  phorum_mod_foo_some_hook()
  phorum_mod_foo_some_other_hook()
  phorum_mod_foo_some_hook()
  phorum_mod_foo_some_other_hook()
  phorum_mod_foo_pre_post()
  phorum_mod_foo_some_hook()
  as()

Interface: under  - X-Ref

phorum_mod_foo_some_hook($data)   X-Ref
Pas de description

names(phorum_mod_foo_<identifier>You can use whatever you like for the <identifier> part. When writinga hook function, it is recommended to use the name of the hook forwhich you are writing the function (this will make clear what thefunction does, without having to check the module info)   X-Ref
Pas de description

name(phorum_mod_foo_some_hookIf your hook function handles multiple hooks at once, thensimply use one of the hook's names as the <identifier> or make upsomething yourself.3.7.2 Data stored in $PHORUM----------------------------When storing data in $PHORUM, always prepend the array key namewith mod_<module name>. If your module is named "foo", do not use:$PHORUM["mydata"]but instead:$PHORUM["mod_foo_mydata"]3.7.3 Language strings stored in $PHORUM----------------------------------------When storing your custom language strings, do not put them directlyin $PHORUM["DATA"]["LANG"] like Phorum does, because that mightresult in conflicting language strings. Instead add an extra data level,which makes sure that your module keeps all language strings to itself.If your module is named "foo", you should store language strings in:$PHORUM["DATA"]["LANG"]["mod_foo"]See also section 2.3.3.7.4 Data stored in messages, users and settings-------------------------------------------------When using the Phorum provided ways of storing data in messages,users and settings, always prepend the data key withmod_<module name>. SO if your module is named "foo", do not usethings like:$new_message["meta"]["foodata"] = "Some data";$user["foodata"] = "Some data";phorum_db_update_settings(array("settings" => $foo_settings)   X-Ref
Pas de description

phorum_mod_foo_before_editor($data)   X-Ref
Pas de description

phorum_mod_foo_before_register($data)   X-Ref
Pas de description

phorum_mod_foo_cc_save_user($data)   X-Ref
Pas de description

phorum_mod_foo_check_post($args)   X-Ref
Pas de description

Interface: option  - X-Ref

check_foo()   X-Ref
Pas de description

phorum_mod_foo_user_check_login($login)   X-Ref
Pas de description

phorum_mod_foo_user_check_login($login)   X-Ref
Pas de description

Interface: at  - X-Ref

Fonctions
Fonctions qui ne font pas partie d'une Classe:

phorum_mod_foo_some_hook($data)   X-Ref
Pas de description

phorum_mod_foo_some_hook($data)   X-Ref
Pas de description

phorum_mod_foo_some_other_hook($data)   X-Ref
Pas de description

phorum_mod_foo_some_hook($data)   X-Ref
Pas de description

phorum_mod_foo_some_other_hook($data)   X-Ref
Pas de description

phorum_mod_foo_pre_post($message)   X-Ref
Pas de description

phorum_mod_foo_some_hook($data)   X-Ref
Pas de description

as(and future changes will automatically be incorporated in the linksyou use.Here's an example of building an URL, which will open the profilefor the user with user_id = 17:$url = phorum_get_url(PHORUM_PROFILE_URL, 17)   X-Ref
Pas de description



Généré le : Thu Nov 29 12:22:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics