本文整理汇总了PHP中SQLQBuilder::queryAllInformation方法的典型用法代码示例。如果您正苦于以下问题:PHP SQLQBuilder::queryAllInformation方法的具体用法?PHP SQLQBuilder::queryAllInformation怎么用?PHP SQLQBuilder::queryAllInformation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SQLQBuilder
的用法示例。
在下文中一共展示了SQLQBuilder::queryAllInformation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPayPeriodList
/**
* Get list of pay periods defined in the system
* @return array Array of all pay periods defined in the system
*/
public static function getPayPeriodList()
{
$fields[0] = self::DB_FIELD_PAYPERIOD_NAME;
$fields[1] = self::DB_FIELD_PAYPERIOD_CODE;
$sql_builder = new SQLQBuilder();
$sql_builder->table_name = self::TABLE_NAME;
$sql_builder->flg_select = 'true';
$sql_builder->arr_select = $fields;
$sql = $sql_builder->queryAllInformation();
$dbConnection = new DMLFunctions();
$result = $dbConnection->executeQuery($sql);
$periods = array();
if ($result && mysql_num_rows($result) > 0) {
while ($line = mysql_fetch_assoc($result)) {
$period = new PayPeriod();
$period->setCode($line[self::DB_FIELD_PAYPERIOD_CODE]);
$period->setName($line[self::DB_FIELD_PAYPERIOD_NAME]);
$periods[$period->getCode()] = $period;
}
}
return $periods;
}