本文整理汇总了PHP中Criteria::addSelectColumn方法的典型用法代码示例。如果您正苦于以下问题:PHP Criteria::addSelectColumn方法的具体用法?PHP Criteria::addSelectColumn怎么用?PHP Criteria::addSelectColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Criteria
的用法示例。
在下文中一共展示了Criteria::addSelectColumn方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(TempApplicantPeer::ID);
$criteria->addSelectColumn(TempApplicantPeer::TEST_APPLICANT_ID);
$criteria->addSelectColumn(TempApplicantPeer::REG_PERIOD_ID);
$criteria->addSelectColumn(TempApplicantPeer::TEST_SCHEDULE_ID);
}
示例2: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(AngketpmbSoalPeer::ID);
$criteria->addSelectColumn(AngketpmbSoalPeer::ORDERING);
$criteria->addSelectColumn(AngketpmbSoalPeer::CODE);
$criteria->addSelectColumn(AngketpmbSoalPeer::TEXT);
}
示例3: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(PaisPeer::ID);
$criteria->addSelectColumn(PaisPeer::NOMBRE_LARGO);
$criteria->addSelectColumn(PaisPeer::NOMBRE_CORTO);
$criteria->addSelectColumn(PaisPeer::ORDEN);
}
示例4: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(VTestApplicantPeer::ID);
$criteria->addSelectColumn(VTestApplicantPeer::REG_TEST_PERIOD1);
$criteria->addSelectColumn(VTestApplicantPeer::REG_TEST_PERIOD2);
$criteria->addSelectColumn(VTestApplicantPeer::CURRICULUM_ID);
}
示例5: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(AccalPeriodPeer::ID);
$criteria->addSelectColumn(AccalPeriodPeer::ACADEMIC_CALENDAR_ID);
$criteria->addSelectColumn(AccalPeriodPeer::MONTH_ID);
$criteria->addSelectColumn(AccalPeriodPeer::YEAR);
}
示例6: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(sfGuardRememberKeyPeer::USER_ID);
$criteria->addSelectColumn(sfGuardRememberKeyPeer::REMEMBER_KEY);
$criteria->addSelectColumn(sfGuardRememberKeyPeer::IP_ADDRESS);
$criteria->addSelectColumn(sfGuardRememberKeyPeer::CREATED_AT);
}
示例7: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(SubdistrictPeer::ID);
$criteria->addSelectColumn(SubdistrictPeer::NAME);
$criteria->addSelectColumn(SubdistrictPeer::DISTRICT_ID);
$criteria->addSelectColumn(SubdistrictPeer::CREATED);
}
示例8: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(CatalogPeer::ID);
$criteria->addSelectColumn(CatalogPeer::CODE);
$criteria->addSelectColumn(CatalogPeer::CAT_LANGUAGE_ID);
$criteria->addSelectColumn(CatalogPeer::CAT_CATEGORY_ID);
$criteria->addSelectColumn(CatalogPeer::CAT_SUBJECT_ID);
$criteria->addSelectColumn(CatalogPeer::TITLE);
$criteria->addSelectColumn(CatalogPeer::SUBTITLE);
$criteria->addSelectColumn(CatalogPeer::PUBLISHER_ID);
$criteria->addSelectColumn(CatalogPeer::PUBLISHED_YEAR);
$criteria->addSelectColumn(CatalogPeer::PUBLISHED_LOCATION);
$criteria->addSelectColumn(CatalogPeer::ISBN);
$criteria->addSelectColumn(CatalogPeer::STUDENT_NO);
$criteria->addSelectColumn(CatalogPeer::STUDENT_NAME);
$criteria->addSelectColumn(CatalogPeer::STUDENT_MAJOR);
$criteria->addSelectColumn(CatalogPeer::STUDENT_TUTOR);
$criteria->addSelectColumn(CatalogPeer::VERSION);
$criteria->addSelectColumn(CatalogPeer::EDITION);
$criteria->addSelectColumn(CatalogPeer::PRINT_NO);
$criteria->addSelectColumn(CatalogPeer::PART);
$criteria->addSelectColumn(CatalogPeer::VOLUME);
$criteria->addSelectColumn(CatalogPeer::MONTH);
$criteria->addSelectColumn(CatalogPeer::YEAR);
$criteria->addSelectColumn(CatalogPeer::NO);
$criteria->addSelectColumn(CatalogPeer::BONUS);
$criteria->addSelectColumn(CatalogPeer::PAGES);
$criteria->addSelectColumn(CatalogPeer::HEIGHT);
$criteria->addSelectColumn(CatalogPeer::SYNOPSIS);
$criteria->addSelectColumn(CatalogPeer::ABSTRACTS);
$criteria->addSelectColumn(CatalogPeer::SEARCH_KEYWORDS);
$criteria->addSelectColumn(CatalogPeer::CREATED_AT);
$criteria->addSelectColumn(CatalogPeer::UPDATED_AT);
}
示例9: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(VTotalUploadPeer::EMPLOYEE_ID);
$criteria->addSelectColumn(VTotalUploadPeer::CAT_CATEGORY_ID);
$criteria->addSelectColumn(VTotalUploadPeer::DEPARTMENT_ID);
$criteria->addSelectColumn(VTotalUploadPeer::TOTAL_CATALOG);
}
示例10: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(QubitTermI18n::NAME);
$criteria->addSelectColumn(QubitTermI18n::ID);
$criteria->addSelectColumn(QubitTermI18n::CULTURE);
return $criteria;
}
示例11: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(VPayerTypePeer::ID);
$criteria->addSelectColumn(VPayerTypePeer::CODE);
$criteria->addSelectColumn(VPayerTypePeer::DESCRIPTION);
$criteria->addSelectColumn(VPayerTypePeer::PARENT);
}
示例12: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(ProductCategoryI18nPeer::NAME);
$criteria->addSelectColumn(ProductCategoryI18nPeer::DESCRIPTION);
$criteria->addSelectColumn(ProductCategoryI18nPeer::ID);
$criteria->addSelectColumn(ProductCategoryI18nPeer::CULTURE);
}
示例13: addSelectColumns
public static function addSelectColumns(Criteria $criteria)
{
$criteria->addSelectColumn(EmployeeDivisionPeer::ID);
$criteria->addSelectColumn(EmployeeDivisionPeer::DEPARTMENT_ID);
$criteria->addSelectColumn(EmployeeDivisionPeer::CODE);
$criteria->addSelectColumn(EmployeeDivisionPeer::NAME);
}
示例14: getCalendarBusinessHours
function getCalendarBusinessHours($CalendarUid)
{
$Criteria = new Criteria('workflow');
$Criteria->clearSelectColumns();
$Criteria->addSelectColumn(CalendarBusinessHoursPeer::CALENDAR_UID);
$Criteria->addSelectColumn(CalendarBusinessHoursPeer::CALENDAR_BUSINESS_DAY);
$Criteria->addSelectColumn(CalendarBusinessHoursPeer::CALENDAR_BUSINESS_START);
$Criteria->addSelectColumn(CalendarBusinessHoursPeer::CALENDAR_BUSINESS_END);
$Criteria->add(CalendarBusinessHoursPeer::CALENDAR_UID, $CalendarUid, CRITERIA::EQUAL);
$Criteria->addDescendingOrderByColumn(CalendarBusinessHoursPeer::CALENDAR_BUSINESS_DAY);
$Criteria->addAscendingOrderByColumn(CalendarBusinessHoursPeer::CALENDAR_BUSINESS_START);
//$Criteria->addDescendingOrderByColumn ( CalendarBusinessHoursPeer::CALENDAR_BUSINESS_START );
$rs = CalendarBusinessHoursPeer::doSelectRS($Criteria);
$rs->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$rs->next();
$row = $rs->getRow();
$fields = array();
$count = 0;
while (is_array($row)) {
$count++;
$fields[$count] = $row;
$rs->next();
$row = $rs->getRow();
}
return $fields;
}
示例15: getEquipmentMileage
public static function getEquipmentMileage($userId, $bikeId)
{
$c = new Criteria();
$c->clearSelectColumns();
$c->addSelectColumn('SUM(' . UserStatsPeer::MILEAGE . ')');
$c->addSelectColumn(UserEquipementPeer::EQUIPMENT_ID);
//$c->addGroupByColumn(UserRidesPeer::MILEAGE);
$c->add(UserEquipementPeer::USER_ID, $userId);
$c->add(UserEquipementPeer::BIKE_ID, $bikeId);
$c->addJoin(UserEquipementPeer::EQUIPMENT_ID, UserStatEquipPeer::USER_EQUIP_ID, Criteria::INNER_JOIN);
$c->addJoin(UserStatEquipPeer::USER_STAT_ID, UserStatsPeer::STAT_NO, Criteria::INNER_JOIN);
//$c->addJoin(UserStatsPeer::RIDE_KEY,UserRidesPeer::USER_RIDE_ID, Criteria::INNER_JOIN);
$c->addGroupByColumn(UserEquipementPeer::EQUIPMENT_ID);
$stmt = UserStatsPeer::doSelectStmt($c);
$hashmap = array();
if ($stmt) {
while ($row = $stmt->fetch(PDO::FETCH_NUM)) {
if ($row) {
$sum = $row[0];
$eqId = $row[1];
//echo 'Mil '.$sum.' '.$eqId;
$hashmap[$eqId] = $sum;
// array_push($hashmap, $eqId=>$sum);
}
}
}
return $hashmap;
}