28 if (!empty($data[1])) {
29 $this->className = $data[1];
41 if (!preg_match(
'/^[A-Z][A-Z_0-9\\\\]*$/i', $this->className)) {
51 if ($classFile === null) {
65 if ($this->className) {
71 if (self::phpLintFile(
$fileName, $output) ===
false) {
88 exec(sprintf(
'php -n -l %s 2>&1', escapeshellarg(
$fileName)) , $output,
$status);
95 $o =
new ReflectionClass(
'\\' . $this->className);
96 if (!
$o->isInstantiable()) {
100 if ($this->doc->fromid > 0) {
108 $fromName =
"Document";
111 $parentClass =
'\\Dcp\Family\\' . $fromName;
113 if (!
$o->isSubclassOf($parentClass)) {
118 catch(\Exception $e) {
check(array $data, &$doc=null)
static getError($code, $args=null)
static instance($pTmpPath, $pTmpFileName= 'directoriesautoloader.cache.php')
static phpLintFile($fileName, &$output)
getNameFromId($dbaccess, $id)