/** * * @param type $characterIdOrName * @param type $ownerUid * @param Database $dbObj * @throws InvalidArgumentException */ public function __construct($characterIdOrName, $ownerUid = null, Database $dbObj = null) { parent::__construct(null, self::tableName, self::seqName, self::pkeyField); $this->ownerUid = $ownerUid; if (!is_null($characterIdOrName)) { if (is_numeric($characterIdOrName)) { $this->characterId = $characterIdOrName; } else { $this->characterId = $this->create($dbObj, array('character_name' => $characterIdOrName, 'uid' => $this->ownerUid)); } } else { throw new InvalidArgumentException(); } $this->id = $this->characterId; $this->_sheetIdPrefix = self::sheetIdPrefix; }
public function __construct(array $initialData = array()) { parent::__construct($initialData, self::tableName, self::tableSeq, self::pkeyField); $this->_sheetIdPrefix = self::sheetIdPrefix; $this->_useSheetIdSuffix = true; }
public function __construct(array $initialData = null, Database $db = null) { parent::__construct($initialData, self::tableName, self::seqName, self::pkeyField, $db); }