本文整理汇总了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;
}
示例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;
}
示例3: findData
public function findData($filters = array())
{
$data = parent::findData($filters);
foreach ($data as $value) {
$tmp[] = $value['YP_Year'];
}
$data = implode(',', $tmp);
return $data;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}