Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
FamilyImport Class Reference
+ Collaboration diagram for FamilyImport:

Static Public Member Functions

static createDocFile ($dbaccess, $tdoc)
 
static activateTrigger ($dbaccess, $docid)
 
static setSqlIndex ($dbaccess, $docid)
 
static refreshPhpPgDoc ($dbaccess, $docid)
 
static buildFamilyFilesAndTables ($dbaccess, $familyData, $interactive=false)
 
static parseType ($type)
 

Static Protected Member Functions

static __phpLintWriteFile ($fileName, $content)
 
static AttrIdToPhp ($dbaccess, $tdoc)
 
static doubleslash ($s)
 
static tableExists ($dbaccess, $schemaName, $tableName)
 
static viewExists ($dbaccess, $schemaName, $viewName)
 
static createFamilyTable ($dbaccess, $docid)
 
static recreateFamilyView ($dbaccess, $docname, $docid)
 
static getTableColumns ($dbaccess, $schemaName, $tableName)
 
static alterTableAddColumn ($dbaccess, $schemaName, $tableName, $columnName, $columnType)
 
static resetSystemEnum ($famid)
 
static completeAttribute ($dbaccess, $ta)
 
static getParentAttributes ($dbaccess, $fromid)
 
static getTypeMain ($type)
 
static getTypeFormat ($type)
 
static getMethodFileInnerContents ($filename)
 

Detailed Description

Definition at line 18 of file Class.FamilyImport.php.

Member Function Documentation

static __phpLintWriteFile (   $fileName,
  $content 
)
staticprotected

Write PHP content to destination file if PHP syntax is correct.

  • The content is first written to a temporary file next to the final destination file.
  • The syntax of the temporary file is checked.
  • If the syntax is correct, then the temporary file is "commited" to the destination file.
Parameters
string$fileNamedestination file
string$contentcontent to write
Returns
string empty string on success or error message on failure

Definition at line 34 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static activateTrigger (   $dbaccess,
  $docid 
)
static

Definition at line 798 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static alterTableAddColumn (   $dbaccess,
  $schemaName,
  $tableName,
  $columnName,
  $columnType 
)
staticprotected

Definition at line 772 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static AttrIdToPhp (   $dbaccess,
  $tdoc 
)
staticprotected

Definition at line 556 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static buildFamilyFilesAndTables (   $dbaccess,
  $familyData,
  $interactive = false 
)
static

Definition at line 847 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static completeAttribute (   $dbaccess,
  $ta 
)
staticprotected

complete attribute properties from parent attribute

Parameters
string$dbaccess
\DocAttr$ta
Returns
mixed
Exceptions
Db\Exception

Definition at line 917 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static createDocFile (   $dbaccess,
  $tdoc 
)
static

Definition at line 777 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static createFamilyTable (   $dbaccess,
  $docid 
)
staticprotected

Definition at line 750 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static doubleslash (   $s)
staticprotected

Definition at line 603 of file Class.FamilyImport.php.

static getMethodFileInnerContents (   $filename)
staticprotected

Get the content of a METHOD file without the PHP opening/closing tags and without the -method-ignore/-method-ignore sections.

Parameters
$filename
Returns
string

Definition at line 1052 of file Class.FamilyImport.php.

static getParentAttributes (   $dbaccess,
  $fromid 
)
staticprotected

get parent attributes

Parameters
string$dbaccess
string$fromid
Returns
array
Exceptions
Db\Exception

Definition at line 972 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static getTableColumns (   $dbaccess,
  $schemaName,
  $tableName 
)
staticprotected

Definition at line 766 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static getTypeFormat (   $type)
staticprotected

Definition at line 1039 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static getTypeMain (   $type)
staticprotected

Definition at line 1033 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static parseType (   $type)
static

Extract the main type and the format from a type string

Parameters
string$typee.g. 'array("empty")'
Returns
array() struct e.g. array('type' => 'array', 'format' => '"empty"')

Definition at line 1014 of file Class.FamilyImport.php.

static recreateFamilyView (   $dbaccess,
  $docname,
  $docid 
)
staticprotected

Definition at line 761 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static refreshPhpPgDoc (   $dbaccess,
  $docid 
)
static

refresh PHP Class & Postgres Table Definition

Parameters
string$dbaccess
int$docid
Returns
string error message

Definition at line 832 of file Class.FamilyImport.php.

static resetSystemEnum (   $famid)
staticprotected

reset and record system enum into docenum table

Parameters
int$famid

Definition at line 899 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static setSqlIndex (   $dbaccess,
  $docid 
)
static

Definition at line 812 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static tableExists (   $dbaccess,
  $schemaName,
  $tableName 
)
staticprotected

Definition at line 738 of file Class.FamilyImport.php.

+ Here is the call graph for this function:

static viewExists (   $dbaccess,
  $schemaName,
  $viewName 
)
staticprotected

Definition at line 744 of file Class.FamilyImport.php.

+ Here is the call graph for this function:


The documentation for this class was generated from the following file:
← centre documentaire © anakeen