/** * Creates a new Planet object of a user * * @param int planet id * @param array data row */ public function __construct($planetID = null, $row = null) { if ($row === null) { $this->planetID = $planetID; $sql = "SELECT *\r\n\t \t\t\tFROM ugml" . LW_N . "_planets\r\n\t \t\t\tWHERE id = '" . $planetID . "'"; $row = WCF::getDB()->getFirstRow($sql); } else { $this->planetID = $row['id']; } parent::__construct($row); }
/** * Creates a new Planet object of a user * * @param int planet id * @param array data row */ public function __construct($planetID = null, $row = null, $updateLastActivity = true) { if ($row === null) { $this->planetID = intval($planetID); $sql = "SELECT *\r\n\t \t\t\tFROM ugml" . LW_N . "_planets\r\n\t \t\t\tWHERE id = " . $planetID; $row = WCF::getDB()->getFirstRow($sql); } else { $this->planetID = intval($row['id']); } parent::__construct($row); $this->planetID = intval($this->planetID); }