Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Method.DocSociety.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Methods for society document
9  *
10  * @author Anakeen 2000
11  * @version $Id: Method.DocSociety.php,v 1.1 2004/01/15 10:12:02 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage USERCARD
15  */
16 /**
17  */
18 /**
19  * @begin-method-ignore
20  * this part will be deleted when construct document class until end-method-ignore
21  */
22 class _SOCIETY extends Doc
23 {
24  /*
25  * @end-method-ignore
26  */
27 
28  function UpdateSite()
29  {
30 
31  include_once ("FDL/Lib.Dir.php");
32  // contracts():SI_IDCONTRATS,SI_CONTRATS
33  if ($this->initid > 0) {
34  $filter[] = "si_idsoc = '" . $this->initid . "'";
35  $tsite = getChildDoc($this->dbaccess, 0, 0, "ALL", $filter, 1, "TABLE", "SITE");
36  $idc = array();
37  $tc = array();
38  foreach ($tsite as $k => $v) {
39  $idc[] = $v["id"];
40  $tc[] = $v["title"];
41  }
42 
43  $this->setValue("SI_IDSITES", $idc);
44  $this->setValue("SI_SITES", $tc);
45  }
46  }
47  function SpecRefresh()
48  {
49  $this->UpdateSite();
50  }
51  /**
52  * @begin-method-ignore
53  * this part will be deleted when construct document class until end-method-ignore
54  */
55 }
56 /*
57  * @end-method-ignore
58 */
59 ?>
← centre documentaire © anakeen - published under CC License - Dynacase