コード例 #1
0
ファイル: BaseVenta.php プロジェクト: jalvarez14/hva
 /**
  * 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['Venta'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Venta'][$this->getPrimaryKey()] = true;
     $keys = VentaPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdventa(), $keys[1] => $this->getIdpaciente(), $keys[2] => $this->getVentaFecha(), $keys[3] => $this->getVentaTipodepago(), $keys[4] => $this->getVentaStatus(), $keys[5] => $this->getVentaFacturada(), $keys[6] => $this->getVentaRegistrada(), $keys[7] => $this->getVentaTotal(), $keys[8] => $this->getVentaReferenciapago());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aPaciente) {
             $result['Paciente'] = $this->aPaciente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collCargoventas) {
             $result['Cargoventas'] = $this->collCargoventas->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collFacturas) {
             $result['Facturas'] = $this->collFacturas->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }
コード例 #2
0
ファイル: BaseCita.php プロジェクト: jalvarez14/hva
 /**
  * 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['Cita'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Cita'][$this->getPrimaryKey()] = true;
     $keys = CitaPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdcita(), $keys[1] => $this->getIdpaciente(), $keys[2] => $this->getIdmedico(), $keys[3] => $this->getCitaFecha(), $keys[4] => $this->getCitaHora(), $keys[5] => $this->getCitaDescripcion());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aMedico) {
             $result['Medico'] = $this->aMedico->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aPaciente) {
             $result['Paciente'] = $this->aPaciente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
コード例 #3
0
ファイル: BaseAdmision.php プロジェクト: jalvarez14/hva
 /**
  * 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['Admision'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Admision'][$this->getPrimaryKey()] = true;
     $keys = AdmisionPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdadmision(), $keys[1] => $this->getIdpaciente(), $keys[2] => $this->getIdmedico(), $keys[3] => $this->getIdcuarto(), $keys[4] => $this->getAdmisionFechaadmision(), $keys[5] => $this->getAdmisionFechasalida(), $keys[6] => $this->getAdmisionDiagnostico(), $keys[7] => $this->getAdmisionObservaciones(), $keys[8] => $this->getAdmisionStatus(), $keys[9] => $this->getAdmisionTotal(), $keys[10] => $this->getAdmisionPagadaen(), $keys[11] => $this->getAdmisionTipodepago(), $keys[12] => $this->getAdmisionReferenciapago(), $keys[13] => $this->getAdmisionFacturada(), $keys[14] => $this->getAdmisionRegistrada());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aCuarto) {
             $result['Cuarto'] = $this->aCuarto->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aMedico) {
             $result['Medico'] = $this->aMedico->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aPaciente) {
             $result['Paciente'] = $this->aPaciente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collAdmisionanticipos) {
             $result['Admisionanticipos'] = $this->collAdmisionanticipos->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collCargoadmisions) {
             $result['Cargoadmisions'] = $this->collCargoadmisions->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collFacturas) {
             $result['Facturas'] = $this->collFacturas->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }
コード例 #4
0
 /**
  * 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['Pacientefacturacion'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Pacientefacturacion'][$this->getPrimaryKey()] = true;
     $keys = PacientefacturacionPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdpacientefacturacion(), $keys[1] => $this->getIdpaciente(), $keys[2] => $this->getPacientefacturacionRazonsocial(), $keys[3] => $this->getPacientefacturacionRfc(), $keys[4] => $this->getPacientefacturacionCalle(), $keys[5] => $this->getPacientefacturacionNoexterior(), $keys[6] => $this->getPacientefacturacionNointerior(), $keys[7] => $this->getPacientefacturacionColonia(), $keys[8] => $this->getPacientefacturacionCiudad(), $keys[9] => $this->getPacientefacturacionEstado(), $keys[10] => $this->getPacientefacturacionPais(), $keys[11] => $this->getPacientefacturacionCodigopostal(), $keys[12] => $this->getPacientefacturacionTelefono(), $keys[13] => $this->getPacientefacturacionEmail());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aPaciente) {
             $result['Paciente'] = $this->aPaciente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collFacturas) {
             $result['Facturas'] = $this->collFacturas->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }