Example #1
0
 /**
  * Constructor
  * 
  * @param string $table the table the object belongs to
  */
 public function __construct($table)
 {
     parent::__construct();
     if (empty($table)) {
         FWS_Helper::def_error('notempty', 'table', $table);
     }
     $this->_table = $table;
 }
 /**
  * Constructor
  * 
  * @param PC_Engine_Env $env the environment
  */
 public function __construct($env)
 {
     parent::__construct();
     if (!$env instanceof PC_Engine_Env) {
         FWS_Helper::def_error('instance', 'env', 'PC_Engine_Env', $env);
     }
     $this->env = $env;
 }
 /**
  * Constructor
  *
  * @param PC_Engine_Options $options the options
  */
 public function __construct($options)
 {
     parent::__construct();
     if (!$options instanceof PC_Engine_Options) {
         FWS_Helper::def_error('instance', 'options', 'PC_Engine_Options', $options);
     }
     $this->options = $options;
 }
Example #4
0
 /**
  * Constructor
  * 
  * @param string $file the file that describes the class
  */
 public function __construct($file)
 {
     parent::__construct();
     $this->file = $file;
 }
 /**
  * Constructor
  * 
  * @param PC_Engine_Env $env the environment
  */
 public function __construct($env)
 {
     parent::__construct();
     $this->env = $env;
 }
Example #6
0
 /**
  * Constructor
  *
  * @param int $id the project-id
  * @param string $name the name
  * @param int $created the timestamp
  * @param string $type_folders the folders for the type-scanner
  * @param string $type_exclude the excluded items for the type-scanner
  * @param string $stmt_folders the folders for the statement-scanner
  * @param string $stmt_exclude the excluded items for the statement-scanner
  * @param boolean $report_argret_strictly report errors strictly?
  */
 public function __construct($id, $name, $created, $type_folders, $type_exclude, $stmt_folders, $stmt_exclude, $report_argret_strictly)
 {
     parent::__construct();
     if (!FWS_Helper::is_integer($id) || $id < 0) {
         FWS_Helper::def_error('intgt0', 'id', $id);
     }
     if (!FWS_Helper::is_integer($created) || $created < 0) {
         FWS_Helper::def_error('intge0', 'created', $created);
     }
     $this->id = $id;
     $this->name = $name;
     $this->created = $created;
     $this->type_folders = $type_folders;
     $this->type_exclude = $type_exclude;
     $this->stmt_folders = $stmt_folders;
     $this->stmt_exclude = $stmt_exclude;
     $this->report_argret_strictly = $report_argret_strictly;
     $this->req = array();
     $this->set_project_deps(array());
 }
Example #7
0
 /**
  * Constructor
  *
  * @param int $type the type
  * @param mixed $value if known the value
  * @param string $class the class-name (for self::OBJECT)
  */
 public function __construct($type, $value = null, $class = '')
 {
     parent::__construct();
     if (!FWS_Helper::is_integer($type)) {
         FWS_Helper::def_error('int', 'type', $type);
     }
     $this->_type = $type;
     $this->set_value($value);
     $this->_class = $class;
 }
Example #8
0
 /**
  * Constructor
  *
  * @param PC_Obj_Location $loc the location of the error
  * @param string $msg the message to display
  * @param int $type the error-type. See self::E_*
  */
 public function __construct($loc, $msg, $type)
 {
     parent::__construct();
     if (!$loc instanceof PC_Obj_Location) {
         FWS_Helper::def_error('instance', 'loc', 'PC_Obj_Location', $loc);
     }
     if (!FWS_Helper::is_integer($type) || $type < 0) {
         FWS_Helper::def_error('intge0', 'type', $type);
     }
     $this->loc = $loc;
     $this->msg = $msg;
     $this->type = $type;
 }
Example #9
0
 /**
  * Constructor
  * 
  * @param string $name the name
  * @param PC_Obj_MultiType $mtype the type (default = unknown)
  */
 public function __construct($name = '', $mtype = null)
 {
     parent::__construct();
     $this->name = $name;
     $this->set_mtype($mtype === null ? new PC_Obj_MultiType() : $mtype);
 }
Example #10
0
 /**
  * Constructor
  *
  * @param PC_Obj_Type|array $types the types to set
  */
 public function __construct($types = array())
 {
     parent::__construct();
     if ($types instanceof PC_Obj_Type) {
         $this->types = array($types);
     } else {
         if (is_array($types)) {
             $this->types = $types;
         }
     }
 }
Example #11
0
 /**
  * Constructor
  * 
  * @param array $aliases the collected aliases
  * @param array $versions the collected versions
  */
 public function __construct($aliases, $versions)
 {
     parent::__construct();
     $this->aliases = $aliases;
     $this->versions = $versions;
 }