本文整理汇总了PHP中Paciente::toArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Paciente::toArray方法的具体用法?PHP Paciente::toArray怎么用?PHP Paciente::toArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Paciente
的用法示例。
在下文中一共展示了Paciente::toArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toArray
/**
* 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: toArray
/**
* 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: toArray
/**
* 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: toArray
/**
* 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;
}