linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Class: scale

Source Location: /class/class.scale.php

Class Overview




Author(s):

Version:

  • $id SVN

Variables

Methods



Class Details

[line 11]


Tags:

author:  linea21 <info@linea21.com>
version:  $id SVN
access:  public
license:  Scale Management


[ Top ]


Class Variables

$ALL_REC = array ()

[line 28]


Type:   mixed


[ Top ]

$COMMENT =

[line 20]


Type:   mixed


[ Top ]

$DATE_CREA =

[line 22]


Type:   mixed


[ Top ]

$DENOMINATION =

[line 16]


Type:   mixed


[ Top ]

$DEPENDENCIES =

[line 21]


Type:   mixed


[ Top ]

$DEPTH_TABLE = array ()

[line 26]


Type:   mixed


[ Top ]

$ID =

[line 15]


Type:   mixed


[ Top ]

$INHABITANTSNUM =

[line 19]


Type:   mixed


[ Top ]

$LAST_MODIFY =

[line 24]


Type:   mixed


[ Top ]

$ROOT =

[line 17]


Type:   mixed


[ Top ]

$SON_TABLE = array ()

[line 27]


Type:   mixed


[ Top ]

$STATUT =

[line 23]


Type:   mixed


[ Top ]

$SURFACE =

[line 18]


Type:   mixed


[ Top ]

$TDB_SCALE =  T_SCALE

[line 14]


Type:   mixed


[ Top ]



Class Methods


method AddScale [line 126]

integer AddScale( array $table_scale, object $sql_object)

scale::AddScale() Ajout d'une echelle



Tags:

access:  public


Parameters:

array   $table_scale   contient les composants d'une echelle
object   $sql_object  

[ Top ]

method CheckDataIntegrity [line 37]

boolean CheckDataIntegrity( array $table_scale)

scale::CheckDataIntegrity() Vérification des données d'une echelle



Tags:

return:  si vrai renvoie true sinon message d'erreurs (string)
access:  public


Parameters:

array   $table_scale   : contient les composants d'une echelle

[ Top ]

method DeleteScale [line 314]

integer DeleteScale( int $ID, object $sql_object, string $type, [int $ID_new = -1])

scale::DeleteScale() suppression d'une echelle



Tags:

return:  // nombre de ressources affectées par les changements
access:  public


Parameters:

int   $ID   identifiant de l'echelle
string   $type   'MASS_DELETE' 'MASS_DELETE' toutes les ressources associées à l'échelle sont rendues inactives 'MASS_MODIFY' remplacement de l'ancienne échelle par $ID_new
int   $ID_new   nouvel id de rattachement
object   $sql_object  

[ Top ]

method getAllRecord [line 111]

void getAllRecord( $sql_object $sql_object)

scale::getAllRecord() Obtention de toutes les échelles.



Parameters:

$sql_object   $sql_object  

[ Top ]

method getMaxDepth [line 60]

array getMaxDepth( $id $id, $sql_object $sql_object)

scale::getMaxDepth() obtention de la profondeur max d'une échelle ( par rapport a ses filles



Tags:

return:  contennat profondeur et échelle d'exclusion
access:  public


Parameters:

$id   $id   : identifiant de l'échelle courante
$sql_object   $sql_object  

[ Top ]

method getScaleDepthAndSon [line 89]

void getScaleDepthAndSon( $table $table, $id $id)

scale::getScaleDepthAndSon() obtention des fils et profondeur ( récursif ) par rapport à une échelle données stockage dans des tableaux respectifs.



Parameters:

$table   $table   Ensemble des échelles
$id   $id   échelle courante

[ Top ]

method ModifyScale [line 183]

bool ModifyScale( int $ID, array $table_scale, object $sql_object)

scale::ModifyScale() modification d'une echelle



Tags:

access:  public


Parameters:

int   $ID   identifiant de l'echelle
object   $sql_object  
array   $table_scale   contient les composants d'une echelle

[ Top ]

method StateScale [line 277]

bool StateScale( $ID, string $state, object $sql_object, int $id)

scale::StateScale() modification du statut d'une échelle



Tags:

access:  public


Parameters:

int   $id   identifiant de l'echelle
string   $state   (facultatif) 'P' Public/'D' Draft
object   $sql_object  
   $ID  

[ Top ]

method update_all_dependencies [line 251]

void update_all_dependencies( $table $table, $depth $depth, $id $id, $sql_object $sql_object)

scale::update_all_dependencies() Mise à jour de l'ensemble des échelles filles par rapport à ul'échelle courante.



Parameters:

$table   $table  
$depth   $depth  
$id   $id  
$sql_object   $sql_object  

[ Top ]


Documentation generated on Fri, 16 Oct 2009 09:30:08 +0200 by phpDocumentor 1.4.1