/** * 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. * @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 = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['JAidUtilisateursProfessionnels'][serialize($this->getPrimaryKey())])) { return '*RECURSION*'; } $alreadyDumpedObjects['JAidUtilisateursProfessionnels'][serialize($this->getPrimaryKey())] = true; $keys = JAidUtilisateursProfessionnelsPeer::getFieldNames($keyType); $result = array( $keys[0] => $this->getIdAid(), $keys[1] => $this->getIdUtilisateur(), ); if ($includeForeignObjects) { if (null !== $this->aAidDetails) { $result['AidDetails'] = $this->aAidDetails->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aUtilisateurProfessionnel) { $result['UtilisateurProfessionnel'] = $this->aUtilisateurProfessionnel->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 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. * @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 = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['EdtEmplacementCours'][$this->getPrimaryKey()])) { return '*RECURSION*'; } $alreadyDumpedObjects['EdtEmplacementCours'][$this->getPrimaryKey()] = true; $keys = EdtEmplacementCoursPeer::getFieldNames($keyType); $result = array( $keys[0] => $this->getIdCours(), $keys[1] => $this->getIdGroupe(), $keys[2] => $this->getIdAid(), $keys[3] => $this->getIdSalle(), $keys[4] => $this->getJourSemaine(), $keys[5] => $this->getIdDefiniePeriode(), $keys[6] => $this->getDuree(), $keys[7] => $this->getHeuredebDec(), $keys[8] => $this->getTypeSemaine(), $keys[9] => $this->getIdCalendrier(), $keys[10] => $this->getModifEdt(), $keys[11] => $this->getLoginProf(), ); if ($includeForeignObjects) { if (null !== $this->aGroupe) { $result['Groupe'] = $this->aGroupe->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aAidDetails) { $result['AidDetails'] = $this->aAidDetails->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aEdtSalle) { $result['EdtSalle'] = $this->aEdtSalle->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aEdtCreneau) { $result['EdtCreneau'] = $this->aEdtCreneau->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aEdtCalendrierPeriode) { $result['EdtCalendrierPeriode'] = $this->aEdtCalendrierPeriode->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aUtilisateurProfessionnel) { $result['UtilisateurProfessionnel'] = $this->aUtilisateurProfessionnel->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->collAbsenceEleveSaisies) { $result['AbsenceEleveSaisies'] = $this->collAbsenceEleveSaisies->toArray(null, true, $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 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. * @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 = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true, $alreadyDumpedObjects = array(), $includeForeignObjects = false) { if (isset($alreadyDumpedObjects['AbsenceEleveSaisie'][$this->getPrimaryKey()])) { return '*RECURSION*'; } $alreadyDumpedObjects['AbsenceEleveSaisie'][$this->getPrimaryKey()] = true; $keys = AbsenceEleveSaisiePeer::getFieldNames($keyType); $result = array( $keys[0] => $this->getId(), $keys[1] => $this->getUtilisateurId(), $keys[2] => $this->getEleveId(), $keys[3] => $this->getCommentaire(), $keys[4] => $this->getDebutAbs(), $keys[5] => $this->getFinAbs(), $keys[6] => $this->getIdEdtCreneau(), $keys[7] => $this->getIdEdtEmplacementCours(), $keys[8] => $this->getIdGroupe(), $keys[9] => $this->getIdClasse(), $keys[10] => $this->getIdAid(), $keys[11] => $this->getIdSIncidents(), $keys[12] => $this->getIdLieu(), $keys[13] => $this->getDeletedBy(), $keys[14] => $this->getCreatedAt(), $keys[15] => $this->getUpdatedAt(), $keys[16] => $this->getDeletedAt(), $keys[17] => $this->getVersion(), $keys[18] => $this->getVersionCreatedAt(), $keys[19] => $this->getVersionCreatedBy(), ); if ($includeForeignObjects) { if (null !== $this->aUtilisateurProfessionnel) { $result['UtilisateurProfessionnel'] = $this->aUtilisateurProfessionnel->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aEleve) { $result['Eleve'] = $this->aEleve->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aEdtCreneau) { $result['EdtCreneau'] = $this->aEdtCreneau->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aEdtEmplacementCours) { $result['EdtEmplacementCours'] = $this->aEdtEmplacementCours->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aGroupe) { $result['Groupe'] = $this->aGroupe->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aClasse) { $result['Classe'] = $this->aClasse->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aAidDetails) { $result['AidDetails'] = $this->aAidDetails->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->aAbsenceEleveLieu) { $result['AbsenceEleveLieu'] = $this->aAbsenceEleveLieu->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); } if (null !== $this->collJTraitementSaisieEleves) { $result['JTraitementSaisieEleves'] = $this->collJTraitementSaisieEleves->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } if (null !== $this->collAbsenceEleveSaisieVersions) { $result['AbsenceEleveSaisieVersions'] = $this->collAbsenceEleveSaisieVersions->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); } } return $result; }