Changeset 2631 for plugins/TaC/inc/class.tac.php
- Timestamp:
- 09/09/10 00:58:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/TaC/inc/class.tac.php
r2628 r2631 88 88 } 89 89 90 /* Retourne quelques statistiques sur l'utilisation de TaC */ 91 public function stat() 92 { 93 $res = array( 94 'registry'=>array() 95 ); 96 97 $rrs = $this->con->select( 98 'SELECT registry_id, cr_id FROM '.$this->table_registry 99 ); 100 while($rrs->fetch()) { 101 102 $ars = $this->con->select( 103 'SELECT count(ct_id) FROM '.$this->table_access.' '. 104 "WHERE registry_id = '".$this->con->escape($rrs->registry_id)."' " 105 ); 106 $res['registry'][$rrs->registry_id] = array( 107 'id' => $rrs->cr_id, 108 'access' => $ars->f(0)+0 109 ); 110 } 111 112 return $res; 113 } 114 90 115 /* Test si un plugin est connu et si oui le charge */ 91 116 public function checkRegistry()
Note: See TracChangeset
for help on using the changeset viewer.