本文整理汇总了PHP中ArrayList::Add方法的典型用法代码示例。如果您正苦于以下问题:PHP ArrayList::Add方法的具体用法?PHP ArrayList::Add怎么用?PHP ArrayList::Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ArrayList
的用法示例。
在下文中一共展示了ArrayList::Add方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAllRegisteredUser
public function getAllRegisteredUser($row)
{
$sqlGetAllRes = "SELECT CUS_ID,CUS_USERNAME,CUS_PASSWORD,CUS_EMAIL,CUS_FIRST_NAME,CUS_LAST_NAME,CUS_GENDER,CUS_CONTACT_ADDRESS,CUS_RECEIPT_ADDRESS,CUS_PHONE_NUMBER,CUS_FACEBOOK_ADDRESS,CREATED_DATE_TIME FROM RICH_CUSTOMER ORDER BY CREATED_DATE_TIME DESC LIMIT " . $row;
$result = mysql_query($sqlGetAllRes);
$listUser = new ArrayList();
while ($row = mysql_fetch_array($result)) {
$userObj = new CustomerVO();
$userObj->setCusID($row['CUS_ID']);
$userObj->setCusUsername($row['CUS_USERNAME']);
$userObj->setCusPassword($row['CUS_PASSWORD']);
$userObj->setCusEmail($row['CUS_EMAIL']);
$userObj->setCusFirstName($row['CUS_FIRST_NAME']);
$userObj->setCusLastName($row['CUS_LAST_NAME']);
$userObj->setCusGender($row['CUS_GENDER']);
$userObj->setCusContactAddr($row['CUS_CONTACT_ADDRESS']);
$userObj->setCusReceiptAddr($row['CUS_RECEIPT_ADDRESS']);
$userObj->setPhoneNumber($row['CUS_PHONE_NUMBER']);
$userObj->setCusFacebookAddr($row['CUS_FACEBOOK_ADDRESS']);
$userObj->setCusCreatedDateTime($row['CREATED_DATE_TIME']);
$listUser->Add($userObj);
}
return $listUser;
}