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