/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['участкиработ'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['участкиработ'][$this->hashCode()] = true; $keys = участкиработTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getучастокработ(), $keys[2] => $this->getпроект()); $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->collвыработкаs) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�ыработкаs'; break; case TableMap::TYPE_FIELDNAME: $key = 'Выработкаs'; break; default: $key = 'выработкаs'; } $result[$key] = $this->collвыработкаs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } if (null !== $this->collфизическиеобъёмыs) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�изическиеобъёмыs'; break; case TableMap::TYPE_FIELDNAME: $key = 'Физические_объёмыs'; break; default: $key = 'физическиеобъёмыs'; } $result[$key] = $this->collфизическиеобъёмыs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } } return $result; }
/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['ДатыОбновленийДашбордов'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['ДатыОбновленийДашбордов'][$this->hashCode()] = true; $keys = ДатыОбновленийДашбордовTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getдашборд(), $keys[2] => $this->getпроект(), $keys[3] => $this->getдата()); if ($result[$keys[3]] instanceof \DateTime) { $result[$keys[3]] = $result[$keys[3]]->format('c'); } $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aКалендарь) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�алендарь'; break; case TableMap::TYPE_FIELDNAME: $key = 'Календарь'; break; default: $key = 'Календарь'; } $result[$key] = $this->aКалендарь->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } } return $result; }
/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['программы'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['программы'][$this->hashCode()] = true; $keys = программыTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getпрограмма(), $keys[2] => $this->getпроект(), $keys[3] => $this->getобъем()); $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->collпроизводственныепрограммыs) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роизводственныепрограммыs'; break; case TableMap::TYPE_FIELDNAME: $key = 'Производственные_программыs'; break; default: $key = 'производственныепрограммыs'; } $result[$key] = $this->collпроизводственныепрограммыs->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } } return $result; }
/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['проблемныевопросы'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['проблемныевопросы'][$this->hashCode()] = true; $keys = проблемныевопросыTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getпроект(), $keys[2] => $this->getдата(), $keys[3] => $this->getкому(), $keys[4] => $this->getпроблемныевопросы(), $keys[5] => $this->getмерыдлярешения(), $keys[6] => $this->getответсвенный(), $keys[7] => $this->getсрок(), $keys[8] => $this->getстатус()); if ($result[$keys[2]] instanceof \DateTime) { $result[$keys[2]] = $result[$keys[2]]->format('c'); } if ($result[$keys[7]] instanceof \DateTime) { $result[$keys[7]] = $result[$keys[7]]->format('c'); } $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } } return $result; }
/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['мобилизацияпомесяцам'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['мобилизацияпомесяцам'][$this->hashCode()] = true; $keys = мобилизацияпомесяцамTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getтиптехники(), $keys[2] => $this->getпланотгрузкаколичество(), $keys[3] => $this->getфактотгрузкаколичество(), $keys[4] => $this->getпландоставкаколичество(), $keys[5] => $this->getфактдоставкаколичество(), $keys[6] => $this->getпроект(), $keys[7] => $this->getгод(), $keys[8] => $this->getмесяц(), $keys[9] => $this->getдатаотчёта(), $keys[10] => $this->getучастокработ()); if ($result[$keys[9]] instanceof \DateTime) { $result[$keys[9]] = $result[$keys[9]]->format('c'); } $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aучасткиработмобилизация) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�часткиработмобилизация'; break; case TableMap::TYPE_FIELDNAME: $key = 'Участки_работ_мобилизация'; break; default: $key = 'участкиработмобилизация'; } $result[$key] = $this->aучасткиработмобилизация->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aКалендарь) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�алендарь'; break; case TableMap::TYPE_FIELDNAME: $key = 'Календарь'; break; default: $key = 'Календарь'; } $result[$key] = $this->aКалендарь->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aтипытехникимобилизация) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�ипытехникимобилизация'; break; case TableMap::TYPE_FIELDNAME: $key = 'Типы_техники_мобилизация'; break; default: $key = 'типытехникимобилизация'; } $result[$key] = $this->aтипытехникимобилизация->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aгода) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�ода'; break; case TableMap::TYPE_FIELDNAME: $key = 'Года'; break; default: $key = 'года'; } $result[$key] = $this->aгода->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aмесяца) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�есяца'; break; case TableMap::TYPE_FIELDNAME: $key = 'Месяца'; break; default: $key = 'месяца'; } $result[$key] = $this->aмесяца->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } } return $result; }
/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['Предписания'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['Предписания'][$this->hashCode()] = true; $keys = ПредписанияTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getконтролирующийорган(), $keys[2] => $this->getподрядчик(), $keys[3] => $this->getдатавыдачи(), $keys[4] => $this->getплановаядатаустранения(), $keys[5] => $this->getфактическаядатаустранения(), $keys[6] => $this->getтипзамечания(), $keys[7] => $this->getпроект(), $keys[8] => $this->getстатусзаявкизавершение(), $keys[9] => $this->getстатусзаявкипросрочка()); if ($result[$keys[3]] instanceof \DateTime) { $result[$keys[3]] = $result[$keys[3]]->format('c'); } if ($result[$keys[4]] instanceof \DateTime) { $result[$keys[4]] = $result[$keys[4]]->format('c'); } if ($result[$keys[5]] instanceof \DateTime) { $result[$keys[5]] = $result[$keys[5]]->format('c'); } $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aКалендарьRelatedByдатавыдачи) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�алендарь'; break; case TableMap::TYPE_FIELDNAME: $key = 'Календарь'; break; default: $key = 'Календарь'; } $result[$key] = $this->aКалендарьRelatedByдатавыдачи->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aКонтролирующиеОрганы) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�онтролирующиеОрганы'; break; case TableMap::TYPE_FIELDNAME: $key = 'Контролирующие_органы'; break; default: $key = 'КонтролирующиеОрганы'; } $result[$key] = $this->aКонтролирующиеОрганы->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aКалендарьRelatedByплановаядатаустранения) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�алендарь'; break; case TableMap::TYPE_FIELDNAME: $key = 'Календарь'; break; default: $key = 'Календарь'; } $result[$key] = $this->aКалендарьRelatedByплановаядатаустранения->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aПодрядчикиПредписания) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�одрядчикиПредписания'; break; case TableMap::TYPE_FIELDNAME: $key = 'Подрядчики_предписания'; break; default: $key = 'ПодрядчикиПредписания'; } $result[$key] = $this->aПодрядчикиПредписания->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aСтатусыЗаявкиЗавершение) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�татусыЗаявкиЗавершение'; break; case TableMap::TYPE_FIELDNAME: $key = 'Статусы_заявки_завершение'; break; default: $key = 'СтатусыЗаявкиЗавершение'; } $result[$key] = $this->aСтатусыЗаявкиЗавершение->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aСтатусыЗаявкиПросрочка) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�татусыЗаявкиПросрочка'; break; case TableMap::TYPE_FIELDNAME: $key = 'Статусы_заявки_просрочка'; break; default: $key = 'СтатусыЗаявкиПросрочка'; } $result[$key] = $this->aСтатусыЗаявкиПросрочка->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aТипыЗамечаний) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�ипыЗамечаний'; break; case TableMap::TYPE_FIELDNAME: $key = 'Типы_замечаний'; break; default: $key = 'ТипыЗамечаний'; } $result[$key] = $this->aТипыЗамечаний->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aКалендарьRelatedByфактическаядатаустранения) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�алендарь'; break; case TableMap::TYPE_FIELDNAME: $key = 'Календарь'; break; default: $key = 'Календарь'; } $result[$key] = $this->aКалендарьRelatedByфактическаядатаустранения->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } } return $result; }
/** * 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 TableMap::TYPE_PHPNAME, TableMap::TYPE_CAMELNAME, * TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM. * Defaults to TableMap::TYPE_PHPNAME. * @param boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns. Defaults to TRUE. * @param array $alreadyDumpedObjects List of objects to skip to avoid recursion * @param boolean $includeForeignObjects (optional) Whether to include hydrated related objects. Default to FALSE. * * @return array an associative array containing the field names (as keys) and field values */ public function toArray($keyType = TableMap::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['мтр'][$this->hashCode()])) { return '*RECURSION*'; } $alreadyDumpedObjects['мтр'][$this->hashCode()] = true; $keys = мтрTableMap::getFieldNames($keyType); $result = array($keys[0] => $this->getId(), $keys[1] => $this->getVin(), $keys[2] => $this->getтиптехники(), $keys[3] => $this->getдата(), $keys[4] => $this->getсостояниетехники(), $keys[5] => $this->getподрядчик(), $keys[6] => $this->getпроект(), $keys[7] => $this->getдатаотчёта()); if ($result[$keys[3]] instanceof \DateTime) { $result[$keys[3]] = $result[$keys[3]]->format('c'); } if ($result[$keys[7]] instanceof \DateTime) { $result[$keys[7]] = $result[$keys[7]]->format('c'); } $virtualColumns = $this->virtualColumns; foreach ($virtualColumns as $key => $virtualColumn) { $result[$key] = $virtualColumn; } if ($includeForeignObjects) { if (null !== $this->aКалендарь) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�алендарь'; break; case TableMap::TYPE_FIELDNAME: $key = 'Календарь'; break; default: $key = 'Календарь'; } $result[$key] = $this->aКалендарь->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aподрядчикимтр) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�одрядчикимтр'; break; case TableMap::TYPE_FIELDNAME: $key = 'Подрядчики_МТР'; break; default: $key = 'подрядчикимтр'; } $result[$key] = $this->aподрядчикимтр->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aПроекты) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�роекты'; break; case TableMap::TYPE_FIELDNAME: $key = 'Проекты'; break; default: $key = 'Проекты'; } $result[$key] = $this->aПроекты->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aстатуссостояниятехники) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�татуссостояниятехники'; break; case TableMap::TYPE_FIELDNAME: $key = 'Статус_состояния_техники'; break; default: $key = 'статуссостояниятехники'; } $result[$key] = $this->aстатуссостояниятехники->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aтипытехникимтр) { switch ($keyType) { case TableMap::TYPE_CAMELNAME: $key = '�ипытехникимтр'; break; case TableMap::TYPE_FIELDNAME: $key = 'Типы_техники_МТР'; break; default: $key = 'типытехникимтр'; } $result[$key] = $this->aтипытехникимтр->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } } return $result; }