/** * 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; }
/** * 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; }
/** * 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()); }
/** * Clones an object of this class. Ensures that references will be cloned, too. */ public function __clone() { parent::__clone(); // clone array-types if (is_array($this->_value)) { // note that this does handle multi-dimensional arrays! foreach ($this->_value as $k => $v) { $this->_value[$k] = clone $v; } } }
/** * 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; }
/** * 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); }
public function __clone() { parent::__clone(); foreach ($this->types as $k => $t) { $this->types[$k] = clone $t; } }
/** * 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; }