Gestion de contenu WorkshopReports et Publications create : 29/09/03 last_modify : 25/03/04 Copyright (C) 2003 Green-box class.contents.php
|
PHP | string _wichType(string $type) |
---|
contents::_wichType() initialisation des tables SQL
Arguments
: type du CONTENU 'WORKSHOP' ou 'PUBLICATION'
Return
-void
PHP | integer AddContents(integer $ID, array $contents_table, string $type, unknown $sql_object) |
---|
contents::AddContents() ajout d'une partie de contenu
Arguments
identifiant du père (rattachement)
tableau contenant les infos ressources
'WORKSHOP' ou 'PUBLICATION'
Return
$last_id
PHP | boolean CheckDataIntegrity(array $table, string $type, string $type_test) |
---|
contents::CheckDataIntegrity() vérifie l'integrité d'un partie avant Insertion
Arguments
contient les composants d'une partie
'P', 'W'
'LIGHT', 'ROCK'
Return
true si verifié, sinon string 'message d'erreur'
PHP | boolean DeleteContents(integer $ID, string $type, object $sql_object) |
---|
contents::DeleteContents() suppression d'une partie
Arguments
: identifiant du contents a supprimer
: 'WORKSHOP' ou 'PUBLICATION'
Return
$result
PHP | void GetTemplateName(integrer $num) |
---|
contents::GetTemplateName() Retourne la forme textuelle du template
Arguments
PHP | boolean ModifyContents(integer $ID, array $contents_table, string $type, object $sql_object) |
---|
contents::ModifyContents() modification d'une partie de contenu
Arguments
: identifiant de la partie à modifier
: tableau contenant les infos ressources
'WORKSHOP' ou 'PUBLICATION'
Return
$result