Core  3.2
PHP API documentation
 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';
31 
32  function __construct($dbaccess = '', $id = '', $res = '', $dbid = 0)
33  {
34  // don't use Doc constructor because it could call this constructor => infinitive loop
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 ?>
$defDoctype
Definition: Class.PFam.php:29
const FAM_ACCESSFAM
Definition: Class.Doc.php:35
static getError($code, $args=null)
Definition: ErrorCode.php:27
$defProfFamId
Definition: Class.PFam.php:30
__construct($dbaccess= '', $id= '', $res= '', $dbid=0)
__construct($dbaccess= '', $id= '', $res= '', $dbid=0)
Definition: Class.PFam.php:32
getRawValue($idAttr, $def="")
Definition: Class.Doc.php:3117
preImport(array $extra=array())
Definition: Class.PFam.php:38
← centre documentaire © anakeen