Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
PU_data_dcp_getResPhpFunc.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package Dcp\Pu
5 */
6 
8 {
9  return array(
10  0 => array(
11  "mineure",
12  "Mi"
13  ) ,
14  1 => array(
15  "majeure",
16  "Ma"
17  ) ,
18  2 => array(
19  "bloquante",
20  "Bl"
21  )
22  );
23 }
24 
26 {
28 }
29 
31 {
32  if (!is_numeric($famId)) {
34  }
35  $s = new SearchDoc($dbaccess, $famId);
36  $s->setObjectReturn();
37  $s->search();
38  $ret = array();
39  while ($doc = $s->getNextDoc()) {
40  if (strlen($title) > 0 && strpos($doc->getTitle() , $title) === false) {
41  continue;
42  }
43  $ret[] = array(
44  $doc->getTitle() ,
45  $doc->getTitle()
46  );
47  }
48  return $ret;
49 }
50 
52 {
54 }
55 
57 {
58  $ret = array();
59  $argList = array();
60  for ($i = 0; $i < func_num_args(); $i++) {
61  $argList[] = func_get_arg($i);
62  }
63  $argString = join(', ', $argList);
64  $ret[] = array(
65  $argString,
66  $argString
67  );
68  return $ret;
69 }
70 
72 {
73  $data = iconv("UTF-8", "ISO-8859-1//TRANSLIT", $a);
74  if (seems_utf8($data)) $data2 = 'utf8';
75  else $data2 = 'other';
76  return array(
77  array(
78  $data,
79  $data2
80  )
81  );
82 }
83 
85 {
86  $data = $a;
87  return array(
88  $data,
89  $data
90  );
91 }
92 ?>
seems_utf8($Str)
Definition: Lib.Common.php:759
PU_data_dcp_getResPhpFunc_wrongArray($a)
print< H1 > Check Database< i > $dbaccess</i ></H1 > $a
Definition: checklist.php:45
PU_data_dcp_getResPhpFunc_latin1($a)
$ret
PU_data_dcp_getResPhpFunc_mirror_args()
if($famId) $s
PU_data_dcp_getResPhpFunc_getGravite()
PU_data_dcp_getResPhpFunc_getTitle_fam_title($dbaccess, $famId, $title)
PU_data_dcp_getResPhpFunc_getTitle_title($dbaccess, $title)
$dbaccess
Definition: checkVault.php:17
getIdFromName($dbaccess, $name)
PU_data_dcp_getResPhpFunc_getTitle_reverse_fam_title($title, $famId, $dbaccess)
$data
← centre documentaire © anakeen