当前位置: 首页>>代码示例>>PHP>>正文


PHP Cliente::toArray方法代码示例

本文整理汇总了PHP中Cliente::toArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Cliente::toArray方法的具体用法?PHP Cliente::toArray怎么用?PHP Cliente::toArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cliente的用法示例。


在下文中一共展示了Cliente::toArray方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: store

 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $pelicula = new Cliente();
     $pelicula->nombre = Request::get('nombre');
     $pelicula->apellido = Request::get('apellido');
     $pelicula->correo = Request::get('correo');
     $pelicula->nombreUsuario = Request::get('nombreUsuario');
     $pelicula->save();
     return Response::json(array('error' => false, 'peliculas' => $pelicula->toArray()), 200);
 }
开发者ID:anam48,项目名称:tickets3,代码行数:15,代码来源:PeliculaController.php

示例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['Venta'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Venta'][$this->getPrimaryKey()] = true;
     $keys = VentaPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdventa(), $keys[1] => $this->getFecha(), $keys[2] => $this->getIdcliente(), $keys[3] => $this->getIdproducto());
     if ($includeForeignObjects) {
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aProducto) {
             $result['Producto'] = $this->aProducto->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:nestorfsandoval,项目名称:2012_pw2_tp2,代码行数:33,代码来源:BaseVenta.php

示例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['Clientearchivo'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Clientearchivo'][$this->getPrimaryKey()] = true;
     $keys = ClientearchivoPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdclientearchivo(), $keys[1] => $this->getIdcliente(), $keys[2] => $this->getClientearchivoArchivo(), $keys[3] => $this->getClientearchivoSize());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:34,代码来源:BaseClientearchivo.php

示例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['Movimiento'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Movimiento'][$this->getPrimaryKey()] = true;
     $keys = MovimientoPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getId(), $keys[1] => $this->getProveedorId(), $keys[2] => $this->getClienteId(), $keys[3] => $this->getTipoMovimiento(), $keys[4] => $this->getProductoId(), $keys[5] => $this->getCantidad(), $keys[6] => $this->getFecha(), $keys[7] => $this->getPrecio());
     if ($includeForeignObjects) {
         if (null !== $this->aProveedor) {
             $result['Proveedor'] = $this->aProveedor->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aProducto) {
             $result['Producto'] = $this->aProducto->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:kcornejo,项目名称:usac,代码行数:36,代码来源:BaseMovimiento.php

示例5: 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['Transaccion'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Transaccion'][$this->getPrimaryKey()] = true;
     $keys = TransaccionPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getId(), $keys[1] => $this->getSerie(), $keys[2] => $this->getDocumento(), $keys[3] => $this->getClienteId(), $keys[4] => $this->getUsuarioId(), $keys[5] => $this->getTipoTransaccionId(), $keys[6] => $this->getNoTarjeta(), $keys[7] => $this->getTotal(), $keys[8] => $this->getDireccion(), $keys[9] => $this->getTipoPagoId());
     if ($includeForeignObjects) {
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aUsuario) {
             $result['Usuario'] = $this->aUsuario->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aTipoTransaccion) {
             $result['TipoTransaccion'] = $this->aTipoTransaccion->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aTipoPago) {
             $result['TipoPago'] = $this->aTipoPago->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:kcornejo,项目名称:usac,代码行数:39,代码来源:BaseTransaccion.php

示例6: 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['Factura'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Factura'][$this->getPrimaryKey()] = true;
     $keys = FacturaPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getId(), $keys[1] => $this->getClienteId(), $keys[2] => $this->getCreatedAt(), $keys[3] => $this->getUpdatedAt(), $keys[4] => $this->getCreatedBy(), $keys[5] => $this->getUpdatedBy(), $keys[6] => $this->getTotal(), $keys[7] => $this->getTipoPagoId(), $keys[8] => $this->getActivo(), $keys[9] => $this->getFecha(), $keys[10] => $this->getSerie(), $keys[11] => $this->getDocumento());
     if ($includeForeignObjects) {
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aTipoPago) {
             $result['TipoPago'] = $this->aTipoPago->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collFacturaDetalles) {
             $result['FacturaDetalles'] = $this->collFacturaDetalles->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }
开发者ID:kcornejo,项目名称:usac,代码行数:36,代码来源:BaseFactura.php

示例7: 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['Expediente'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Expediente'][$this->getPrimaryKey()] = true;
     $keys = ExpedientePeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdexpediente(), $keys[1] => $this->getIdcliente(), $keys[2] => $this->getIdconsignatarioembarcador(), $keys[3] => $this->getExpedienteListaempaque(), $keys[4] => $this->getExpedienteFactura(), $keys[5] => $this->getExpedienteFechainicio(), $keys[6] => $this->getExpedienteFechafin(), $keys[7] => $this->getExpedienteTipo(), $keys[8] => $this->getExpedienteEstatus(), $keys[9] => $this->getExpedienteFolio(), $keys[10] => $this->getExpedientePreciomxn(), $keys[11] => $this->getExpedientePreciousd(), $keys[12] => $this->getExpedienteEstatuspago(), $keys[13] => $this->getExpedienteFacturacionmxn(), $keys[14] => $this->getExpedienteFacturacionusd(), $keys[15] => $this->getExpedientePendientepagomxn(), $keys[16] => $this->getExpedientePendientepagousd(), $keys[17] => $this->getExpedienteFacturapdfmxn(), $keys[18] => $this->getExpedienteFacturaxmlmxn(), $keys[19] => $this->getExpedienteFacturapdfusd(), $keys[20] => $this->getExpedienteFacturaxmlusd());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aProveedorcliente) {
             $result['Proveedorcliente'] = $this->aProveedorcliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collExpedienteanticipos) {
             $result['Expedienteanticipos'] = $this->collExpedienteanticipos->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collExpedientearchivos) {
             $result['Expedientearchivos'] = $this->collExpedientearchivos->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collExpedientegastos) {
             $result['Expedientegastos'] = $this->collExpedientegastos->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collExpedienteservicios) {
             $result['Expedienteservicios'] = $this->collExpedienteservicios->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:49,代码来源:BaseExpediente.php

示例8: 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['Proveedorcliente'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Proveedorcliente'][$this->getPrimaryKey()] = true;
     $keys = ProveedorclientePeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdproveedorcliente(), $keys[1] => $this->getIdcliente(), $keys[2] => $this->getProveedorclienteNombre(), $keys[3] => $this->getProveedorclienteTaxid(), $keys[4] => $this->getProveedorclienteNombrecontacto(), $keys[5] => $this->getProveedorclienteTelefonocontacto(), $keys[6] => $this->getProveedorclienteEmailcontacto(), $keys[7] => $this->getProveedorclienteCalle(), $keys[8] => $this->getProveedorclienteNumero(), $keys[9] => $this->getProveedorclienteInterior(), $keys[10] => $this->getProveedorclienteColonia(), $keys[11] => $this->getProveedorclienteCiudad(), $keys[12] => $this->getProveedorclienteEstado(), $keys[13] => $this->getProveedorclientePais(), $keys[14] => $this->getProveedorclienteTipo());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aCliente) {
             $result['Cliente'] = $this->aCliente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collExpedientes) {
             $result['Expedientes'] = $this->collExpedientes->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:37,代码来源:BaseProveedorcliente.php


注:本文中的Cliente::toArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。