/** * 插入成員 * * 如果有設定$key的話,則會指定插入$key索引,覆蓋該索引的成員。 * @param Generic_object $obj * @param string|null $key * @return Generic_collection */ public function add_item(Generic_object $obj, $key = NULL) { parent::add_item($obj, $key); $this->modified = TRUE; return $this; }