Beispiel #1
0
 /**
  * Constructor
  *
  * @param string $file the file of the class-def
  * @param int $line the line of the class-def
  * @param string $name the constant-name
  * @param PC_Obj_MultiType $type the type
  * @param int $classid the class-id if loaded from db
  */
 public function __construct($file, $line, $name, $type = null, $classid = 0)
 {
     parent::__construct($file, $line);
     $this->set_name($name);
     $this->set_type($type);
     $this->class = $classid;
 }
Beispiel #2
0
 /**
  * Constructor
  * 
  * @param string $file the file of the field
  * @param int $line the line of the field
  * @param string $name the name of the field
  * @param PC_Obj_MultiType $type the type of the field
  * @param string $visibility the visibility
  * @param int $classid the class-id if loaded from db
  */
 public function __construct($file, $line, $name = '', $type = null, $visibility = self::V_PUBLIC, $classid = 0)
 {
     parent::__construct($file, $line);
     $this->name = $name;
     $this->visibility = $visibility;
     $this->class = $classid;
     $type = $type === null ? new PC_Obj_MultiType() : $type;
     $this->set_type($type);
 }
Beispiel #3
0
 /**
  * Constructor
  *
  * @param string $file the file of the def
  * @param int $line the line of the def
  */
 public function __construct($file, $line)
 {
     parent::__construct($file, $line);
 }
Beispiel #4
0
 /**
  * Constructor
  * 
  * @param string $file the file of the def
  * @param int $line the line of the def
  * @param string $name the name
  * @param PC_Obj_MultiType $type the type
  * @param string $function the function-name (scope)
  * @param string $class the class-name (scope)
  */
 public function __construct($file, $line, $name, $type = null, $function = '', $class = '')
 {
     parent::__construct($file, $line);
     if ($type !== null && !$type instanceof PC_Obj_MultiType) {
         FWS_Helper::def_error('instance', 'type', 'PC_Obj_MultiType', $type);
     }
     $this->name = $name;
     $this->type = $type ? $type : new PC_Obj_MultiType();
     $this->function = $function;
     $this->class = $class;
 }