Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
Class.PFam.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Profil for family document
8
*
9
* @author Anakeen
10
* @version $Id: Class.PFam.php,v 1.6 2008/06/03 12:57:28 eric Exp $
11
* @package FDL
12
*/
13
/**
14
*/
15
16
include_once (
"FDL/Class.Doc.php"
);
17
18
class
PFam
extends
Doc
19
{
20
// --------------------------------------------------------------------
21
//---------------------- OBJECT CONTROL PERMISSION --------------------
22
var
$acls
= array(
23
"view"
,
24
"edit"
,
25
"create"
,
26
"icreate"
27
);
28
29
var
$defDoctype
=
'P'
;
30
var
$defProfFamId
=
FAM_ACCESSFAM
;
31
32
function
__construct
(
$dbaccess
=
''
,
$id
=
''
,
$res
=
''
,
$dbid
= 0)
33
{
34
// don't use Doc constructor because it could call this constructor => infinitive loop
35
DocCtrl::__construct
(
$dbaccess
,
$id
,
$res
,
$dbid
);
36
}
37
38
function
preImport
(array $extra = array())
39
{
40
if
($this->
getRawValue
(
"dpdoc_famid"
)) {
41
return
ErrorCode::getError
(
'PRFL0202'
, $this->
getRawValue
(
'ba_title'
));
42
}
43
return
''
;
44
}
45
}
46
?>
PFam\$acls
$acls
Definition:
Class.PFam.php:22
DbObj\$res
$res
Definition:
Class.DbObj.php:90
PFam\$defDoctype
$defDoctype
Definition:
Class.PFam.php:29
FAM_ACCESSFAM
const FAM_ACCESSFAM
Definition:
Class.Doc.php:35
ErrorCode\getError
static getError($code, $args=null)
Definition:
ErrorCode.php:27
PFam\$defProfFamId
$defProfFamId
Definition:
Class.PFam.php:30
DocCtrl\__construct
__construct($dbaccess= '', $id= '', $res= '', $dbid=0)
Definition:
Class.DocCtrl.php:174
Doc\$id
$id
Definition:
Class.Doc.php:336
Doc
Definition:
Class.Doc.php:58
PFam\__construct
__construct($dbaccess= '', $id= '', $res= '', $dbid=0)
Definition:
Class.PFam.php:32
DbObj\$dbid
$dbid
Definition:
Class.DbObj.php:34
DbObj\$dbaccess
$dbaccess
Definition:
Class.DbObj.php:39
PFam
Definition:
Class.PFam.php:18
Doc\getRawValue
getRawValue($idAttr, $def="")
Definition:
Class.Doc.php:3117
PFam\preImport
preImport(array $extra=array())
Definition:
Class.PFam.php:38
← centre documentaire
© anakeen