當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。