/** * Exports the object as an array. * * You can specify the key type of the array by passing one of the class * type constants. * * @param string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @return an associative array containing the field names (as keys) and field values */ public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true) { $keys = AuditTrailPeer::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getCreatedAt(), $keys[2] => $this->getParsedAt(), $keys[3] => $this->getStatus(), $keys[4] => $this->getObjectType(), $keys[5] => $this->getObjectId(), $keys[6] => $this->getRelatedObjectId(), $keys[7] => $this->getRelatedObjectType(), $keys[8] => $this->getEntryId(), $keys[9] => $this->getMasterPartnerId(), $keys[10] => $this->getPartnerId(), $keys[11] => $this->getRequestId(), $keys[12] => $this->getKuserId(), $keys[13] => $this->getAction(), $keys[14] => $this->getData(), $keys[15] => $this->getKs(), $keys[16] => $this->getContext(), $keys[17] => $this->getEntryPoint(), $keys[18] => $this->getServerName(), $keys[19] => $this->getIpAddress(), $keys[20] => $this->getUserAgent(), $keys[21] => $this->getClientTag(), $keys[22] => $this->getDescription(), $keys[23] => $this->getErrorDescription()); return $result; }