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


PHP Criteria::addSelectColumn方法代码示例

本文整理汇总了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);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseTempApplicantPeer.php

示例2: addSelectColumns

 public static function addSelectColumns(Criteria $criteria)
 {
     $criteria->addSelectColumn(AngketpmbSoalPeer::ID);
     $criteria->addSelectColumn(AngketpmbSoalPeer::ORDERING);
     $criteria->addSelectColumn(AngketpmbSoalPeer::CODE);
     $criteria->addSelectColumn(AngketpmbSoalPeer::TEXT);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseAngketpmbSoalPeer.php

示例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);
 }
开发者ID:mediasadc,项目名称:alba,代码行数:7,代码来源:BasePaisPeer.php

示例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);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseVTestApplicantPeer.php

示例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);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseAccalPeriodPeer.php

示例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);
 }
开发者ID:sgrove,项目名称:cothinker,代码行数:7,代码来源:BasesfGuardRememberKeyPeer.php

示例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);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseSubdistrictPeer.php

示例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);
 }
开发者ID:taryono,项目名称:school,代码行数:34,代码来源:BaseCatalogPeer.php

示例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);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseVTotalUploadPeer.php

示例10: addSelectColumns

 public static function addSelectColumns(Criteria $criteria)
 {
     $criteria->addSelectColumn(QubitTermI18n::NAME);
     $criteria->addSelectColumn(QubitTermI18n::ID);
     $criteria->addSelectColumn(QubitTermI18n::CULTURE);
     return $criteria;
 }
开发者ID:nurfiantara,项目名称:ehri-ica-atom,代码行数:7,代码来源:BaseTermI18n.php

示例11: addSelectColumns

 public static function addSelectColumns(Criteria $criteria)
 {
     $criteria->addSelectColumn(VPayerTypePeer::ID);
     $criteria->addSelectColumn(VPayerTypePeer::CODE);
     $criteria->addSelectColumn(VPayerTypePeer::DESCRIPTION);
     $criteria->addSelectColumn(VPayerTypePeer::PARENT);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseVPayerTypePeer.php

示例12: addSelectColumns

 public static function addSelectColumns(Criteria $criteria)
 {
     $criteria->addSelectColumn(ProductCategoryI18nPeer::NAME);
     $criteria->addSelectColumn(ProductCategoryI18nPeer::DESCRIPTION);
     $criteria->addSelectColumn(ProductCategoryI18nPeer::ID);
     $criteria->addSelectColumn(ProductCategoryI18nPeer::CULTURE);
 }
开发者ID:net7,项目名称:Talia-CMS,代码行数:7,代码来源:BaseProductCategoryI18nPeer.php

示例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);
 }
开发者ID:taryono,项目名称:school,代码行数:7,代码来源:BaseEmployeeDivisionPeer.php

示例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;
 }
开发者ID:nshong,项目名称:processmaker,代码行数:26,代码来源:CalendarBusinessHours.php

示例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;
 }
开发者ID:broschb,项目名称:cyclebrain,代码行数:28,代码来源:UserEquipement.php


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