/** * Sets the date of the property specified by strKey * @param string strKey property to be set * @param int intTimeStamp unix timestamp */ public function set_date($strKey, $intTimeStamp = null) { $this->{$strKey} = MyActiveRecord::DbDate($intTimeStamp); }