fieldName = $fieldName; parent::__construct(); } else { $this->fieldName = array(); } } /** * 新增一項未輸入的欄位名稱 */ public function addFieldName($fieldName) { $this->fieldName += array($fieldName); } /** * 取得未輸入的欄位名稱 * @return string|array 欄位名稱 */ public function getFieldName() { return $this->fieldName; } }