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


PHP Empleado::toArray方法代码示例

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


在下文中一共展示了Empleado::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['Expedientegasto'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Expedientegasto'][$this->getPrimaryKey()] = true;
     $keys = ExpedientegastoPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdexpedientegasto(), $keys[1] => $this->getIdexpediente(), $keys[2] => $this->getIdgastofacturacion(), $keys[3] => $this->getIdproveedoritrade(), $keys[4] => $this->getIdempleado(), $keys[5] => $this->getExpedientegastoFecha(), $keys[6] => $this->getExpedientegastoMonto(), $keys[7] => $this->getExpedientegastoTipo(), $keys[8] => $this->getExpedientegastoComprobante(), $keys[9] => $this->getExpedientegastoNota(), $keys[10] => $this->getExpedientegastoMoneda());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aEmpleado) {
             $result['Empleado'] = $this->aEmpleado->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aExpediente) {
             $result['Expediente'] = $this->aExpediente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aGastofacturacion) {
             $result['Gastofacturacion'] = $this->aGastofacturacion->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aProveedoritrade) {
             $result['Proveedoritrade'] = $this->aProveedoritrade->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:43,代码来源:BaseExpedientegasto.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['Expedientearchivo'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Expedientearchivo'][$this->getPrimaryKey()] = true;
     $keys = ExpedientearchivoPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdexpedientearchivo(), $keys[1] => $this->getIdexpediente(), $keys[2] => $this->getIdempleado(), $keys[3] => $this->getExpedientearchivoFecha(), $keys[4] => $this->getExpedientearchivoTipo(), $keys[5] => $this->getExpedientearchivoArchivo(), $keys[6] => $this->getExpedientearchivoSize());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aEmpleado) {
             $result['Empleado'] = $this->aEmpleado->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aExpediente) {
             $result['Expediente'] = $this->aExpediente->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:37,代码来源:BaseExpedientearchivo.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['Empleadofacturacion'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Empleadofacturacion'][$this->getPrimaryKey()] = true;
     $keys = EmpleadofacturacionPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdempleadofacturacion(), $keys[1] => $this->getIdempleado(), $keys[2] => $this->getEmpleadofacturacionRazonsocial(), $keys[3] => $this->getEmpleadofacturacionRfc(), $keys[4] => $this->getEmpleadofacturacionCalle(), $keys[5] => $this->getEmpleadofacturacionNoexterior(), $keys[6] => $this->getEmpleadofacturacionNointerior(), $keys[7] => $this->getEmpleadofacturacionColonia(), $keys[8] => $this->getEmpleadofacturacionCiudad(), $keys[9] => $this->getEmpleadofacturacionEstado(), $keys[10] => $this->getEmpleadofacturacionPais(), $keys[11] => $this->getEmpleadofacturacionCodigopostal(), $keys[12] => $this->getEmpleadofacturacionTelefono(), $keys[13] => $this->getEmpleadofacturacionEmail());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aEmpleado) {
             $result['Empleado'] = $this->aEmpleado->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
     }
     return $result;
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:34,代码来源:BaseEmpleadofacturacion.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['Cliente'][$this->getPrimaryKey()])) {
         return '*RECURSION*';
     }
     $alreadyDumpedObjects['Cliente'][$this->getPrimaryKey()] = true;
     $keys = ClientePeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIdcliente(), $keys[1] => $this->getClienteEmail(), $keys[2] => $this->getClientePassword(), $keys[3] => $this->getClienteRazonsocial(), $keys[4] => $this->getClienteRfc(), $keys[5] => $this->getClienteCalle(), $keys[6] => $this->getClienteNumero(), $keys[7] => $this->getClienteInterior(), $keys[8] => $this->getClienteColonia(), $keys[9] => $this->getClienteCodigopostal(), $keys[10] => $this->getClienteCiudad(), $keys[11] => $this->getClienteEstado(), $keys[12] => $this->getClientePais(), $keys[13] => $this->getClienteTelefono(), $keys[14] => $this->getClienteCelular(), $keys[15] => $this->getClienteNombrecontacto(), $keys[16] => $this->getClienteCumpleanios(), $keys[17] => $this->getClienteCallefiscal(), $keys[18] => $this->getClienteNumerofiscal(), $keys[19] => $this->getClienteInteriorfiscal(), $keys[20] => $this->getClienteColoniafiscal(), $keys[21] => $this->getClienteCodigopostalfiscal(), $keys[22] => $this->getClienteCiudadfiscal(), $keys[23] => $this->getClienteEstadofiscal(), $keys[24] => $this->getClientePaisfiscal(), $keys[25] => $this->getClientePadronimportador(), $keys[26] => $this->getClienteEncargadoconferido(), $keys[27] => $this->getClienteR1(), $keys[28] => $this->getClienteR2(), $keys[29] => $this->getClienteIdentificacionrepresentantelegal(), $keys[30] => $this->getClienteRfcrepresentantelegal(), $keys[31] => $this->getClienteActaconstitutiva(), $keys[32] => $this->getClientePodernotarial(), $keys[33] => $this->getClienteCartaencomienda(), $keys[34] => $this->getClienteComprobantedomicilio(), $keys[35] => $this->getClienteComprobanteclabe(), $keys[36] => $this->getClienteClabe(), $keys[37] => $this->getClienteArchivoszip(), $keys[38] => $this->getIdempleadocomercial(), $keys[39] => $this->getIdempleadooperaciones(), $keys[40] => $this->getClienteUltimologin(), $keys[41] => $this->getClienteFotografiasdomicilio());
     $virtualColumns = $this->virtualColumns;
     foreach ($virtualColumns as $key => $virtualColumn) {
         $result[$key] = $virtualColumn;
     }
     if ($includeForeignObjects) {
         if (null !== $this->aEmpleadoRelatedByIdempleadocomercial) {
             $result['EmpleadoRelatedByIdempleadocomercial'] = $this->aEmpleadoRelatedByIdempleadocomercial->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->aEmpleadoRelatedByIdempleadooperaciones) {
             $result['EmpleadoRelatedByIdempleadooperaciones'] = $this->aEmpleadoRelatedByIdempleadooperaciones->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
         }
         if (null !== $this->collClientearchivos) {
             $result['Clientearchivos'] = $this->collClientearchivos->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collExpedientes) {
             $result['Expedientes'] = $this->collExpedientes->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
         if (null !== $this->collProveedorclientes) {
             $result['Proveedorclientes'] = $this->collProveedorclientes->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
         }
     }
     return $result;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:46,代码来源:BaseCliente.php


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