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


PHP DataObject::findData方法代码示例

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


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

示例1: findData

 public function findData($filters = array())
 {
     $addr = array();
     //        $shipAddr = array();
     $oAddress = new AddressObject();
     $langId = Zend_Registry::get('languageID');
     $data = parent::findData($filters);
     if (!empty($data)) {
         $data = $data[0];
         //            $addrId = $data['PP_AddressId'];
         //
         //            if (!empty($addrId))
         //            {
         //                $addr = $oAddress->getAll($langId, true, $addrId);
         //                $addr = $addr[0];
         //                $addr['PP_AddressId'] = $addrId;
         //            }
         //
         //            $data['parentForm'] = $addr;
         //            $data['addressShipping'] = $shipAddr;
         $oYears = new YearsParticipateObject();
         $data['YP_Year'] = $oYears->findData(array($oYears->getForeignKey() => $data[$this->_foreignKey]));
     }
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:25,代码来源:VolunteersProfilesObject.php

示例2: findData

 public function findData($filters = array())
 {
     $data = parent::findData($filters);
     if (!empty($data)) {
         $tmpValue = $data[0]['NP_Categories'];
         $data['NP_Categories'] = explode(',', $tmpValue);
     }
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:9,代码来源:NewsletterProfilesObject.php

示例3: findData

 public function findData($filters = array())
 {
     $data = parent::findData($filters);
     foreach ($data as $value) {
         $tmp[] = $value['YP_Year'];
     }
     $data = implode(',', $tmp);
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:9,代码来源:YearsParticipateObject.php

示例4: findData

 public function findData($filters = array())
 {
     $addr = array();
     $langId = Zend_Registry::get('languageID');
     $data = parent::findData($filters);
     if (!empty($data)) {
         $data = $data[0];
         $data['DD_TypeMedic'] = explode(',', $data['DD_TypeMedic']);
     }
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:11,代码来源:DiseasesDetailsObject.php

示例5: findData

 public function findData($filters = array())
 {
     $billAddr = array();
     $shipAddr = array();
     $oAddress = new AddressObject();
     $langId = Zend_Registry::get('languageID');
     $data = parent::findData($filters);
     if (!empty($data)) {
         $data = $data[0];
         $first = $data['MP_FirstParent'];
         $second = $data['MP_SecondParent'];
         $data['MP_BirthDateDt'] = $data['MP_BirthDate'];
         $oParent = new ParentProfilesObject();
         $firstPar = $oParent->getParentDetails($first, array('PP_GenericProfileId' => $first));
         $secPar = $oParent->getParentDetails($second, array('PP_GenericProfileId' => $second));
         if (!empty($firstPar)) {
             $firstLink = array($firstPar['RoleLabel'], $firstPar['GP_MemberID'], $firstPar['GP_FirstName'], $firstPar['GP_LastName'], $firstPar['PP_TaxReceipt']);
             $data['firstP'] = $firstLink;
         }
         if (!empty($secPar)) {
             $secLink = array($secPar['RoleLabel'], $secPar['GP_MemberID'], $secPar['GP_FirstName'], $secPar['GP_LastName'], $secPar['PP_TaxReceipt']);
             $data['secP'] = $secLink;
         }
         //            $billId = $data['MP_BillingAddrId'];
         //            $shipId = $data['MP_ShippingAddrId'];
         //
         //            if (!empty($shipId))
         //            {
         //                $shipAddr = $oAddress->getAll($langId, true, $shipId);
         //                $shipAddr = $shipAddr[0];
         //                $shipAddr['MP_ShippingAddrId'] = $shipId;
         //            }
         //
         //            if (!empty($billId))
         //            {
         //                $billAddr = $oAddress->getAll($langId, true, $billId);
         //                $billAddr = $billAddr[0];
         //                $billAddr['MP_BillingAddrId'] = $billId;
         //            }
         //
         //            if (isset($shipAddr['A_Duplicate']) && !$shipAddr['A_Duplicate'])
         //                $shipAddr['duplicate'] = 0;
         //
         //            $data['addressFact'] = $billAddr;
         //            $data['addressShipping'] = $shipAddr;
         $years = 0;
         if (isset($data['MP_BirthDate'])) {
             $years = $this->calculateAge($data['MP_BirthDate']);
         }
         $data['MP_Age'] = $years;
     }
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:53,代码来源:MemberProfilesObject.php

示例6: findData

 public function findData($filters = array())
 {
     $addr = array();
     //        $shipAddr = array();
     $oAddress = new AddressObject();
     $langId = Zend_Registry::get('languageID');
     $data = parent::findData($filters);
     if (!empty($data)) {
         $data = $data[0];
         $addrId = $data[$this->_addressField];
         if (!empty($addrId)) {
             $addr = $oAddress->getAll($langId, true, $addrId);
             $addr = $addr[0];
             $addr[$this->_addressField] = $addrId;
         }
         $data[$this->_formDataName] = $addr;
         //            $data['addressShipping'] = $shipAddr;
     }
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:20,代码来源:StaffProfilesObject.php

示例7: findData

 public function findData($filters = array())
 {
     $oAddress = new AddressObject();
     $data = parent::findData($filters);
     if (!empty($data)) {
         $data = $data[0];
         $address = $oAddress->getAll(null, true, $data['R_RetailerAddressId']);
         foreach ($address as $addr) {
             foreach ($addr as $key => $value) {
                 if (preg_match('/^AI_/', $key) && $addr['AI_LanguageID'] == 2) {
                     $data['retailerFormEn'][$key] = $value;
                 } else {
                     $data['retailerForm'][$key] = $value;
                 }
             }
         }
         $data['retailerForm']['isDistributeur'] = $data['R_Status'];
         $data['retailerForm']['R_Active'] = $data['R_Active'];
     }
     return $data;
 }
开发者ID:anunay,项目名称:stentors,代码行数:21,代码来源:RetailersObject.php


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