• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Criterion类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Criterion的典型用法代码示例。如果您正苦于以下问题:PHP Criterion类的具体用法?PHP Criterion怎么用?PHP Criterion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Criterion类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: doSelectFiltered

 public static function doSelectFiltered(Criteria $criteria, $con = null)
 {
     $criteria->add(VSpecPeer::PARENT, 1, Criteria::IN);
     $c3 = $criteria->getCriterion(VSpecPeer::PARENT);
     $c4 = new Criterion($criteria, VSpecPeer::PARENT, 7, Criteria::IN);
     $c5 = new Criterion($criteria, VSpecPeer::PARENT, 0, Criteria::IN);
     $c4->addOr($c5);
     $c3->addOr($c4);
     $tmp_depts = VSpecPeer::doSelect($criteria);
     $depts = array();
     foreach ($tmp_depts as $key => $val) {
         $pi = $val->getParentalIndex();
         $prefix = '';
         for ($i = 0; $i < $val->level - 1; $i++) {
             $prefix .= ParamsPeer::retrieveByCode('tree_node_mark')->getValue();
         }
         $val->setCode($prefix . $val->getCode());
         $val->setDescription($prefix . $val->getDescription());
         $depts[$pi] = $val;
     }
     ksort($depts);
     $result = array();
     foreach ($depts as $r) {
         $result[] = $r;
     }
     return $result;
 }
开发者ID:taryono,项目名称:school,代码行数:27,代码来源:VSpecPeer.php


示例2: import

 public function import()
 {
     $objPHPExcel = @PHPExcel_IOFactory::load($this->file->getTempName());
     /** @var PHPExcel_Worksheet $worksheet */
     foreach ($objPHPExcel->getWorksheetIterator() as $worksheet) {
         $rowIterator = $worksheet->getRowIterator();
         /** @var PHPExcel_Worksheet_Row $row  */
         foreach ($rowIterator as $row) {
             $criterion = new Criterion();
             $criterion->Decision = $this->decision;
             $cellIterator = $row->getCellIterator();
             $cellIterator->setIterateOnlyExistingCells();
             /** @var PHPExcel_Cell $cell*/
             foreach ($cellIterator as $cell) {
                 if (!is_null($cell)) {
                     $column = $cell->getColumn();
                     if ($column == 'A') {
                         $criterion->name = $cell->getValue();
                         $criterion->save();
                     } else {
                         if ($column == 'B') {
                             $criterion->description = $cell->getValue();
                             $criterion->save();
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:sensorsix,项目名称:app,代码行数:30,代码来源:CriterionImporter.class.php


示例3: canAdd

 /**
  * @param Criterion $criterion
  * @return bool
  */
 public function canAdd(Criterion $criterion)
 {
     $allowedKeys = $this->getAllowedKeys();
     if (empty($allowedKeys)) {
         return true;
     }
     return in_array($criterion->getKey(), $allowedKeys);
 }
开发者ID:madlines,项目名称:criteria,代码行数:12,代码来源:Criteria.php


示例4: getCompaniesWithStatusCriteria

 public function getCompaniesWithStatusCriteria($status)
 {
     $criteria = new SelectCriteria($this->getDomain());
     $statusCriteria = Criterion::_eq($this->getDomain(), "status", $status);
     $criteria->setCriteria($statusCriteria);
     return $criteria;
 }
开发者ID:euBatham,项目名称:javacature,代码行数:7,代码来源:CompanyDAO.class.php


示例5: __construct

 public function __construct($id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:sonicgd,项目名称:google-adwords-api-light,代码行数:7,代码来源:BusinessHour.php


示例6: getEntityWithLowerPosition

 public function getEntityWithLowerPosition(Page $movedEntity)
 {
     $criteria = new SelectCriteria($this->getDomain());
     $criteria->setCriteria(Criterion::_gt($this->getDomain(), "position", $movedEntity->getPosition()));
     $criteria->addTransformer(Transformer::_limit(1));
     $criteria->addTransformer(Transformer::_orderBy($this->getDomain(), "position", false));
     return $criteria->toUnique();
 }
开发者ID:euBatham,项目名称:javacature,代码行数:8,代码来源:PageDAO.class.php


示例7: __construct

 public function __construct($name = null, $countryCode = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->name = $name;
     $this->countryCode = $countryCode;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:anton-github,项目名称:google-adwords-api-light,代码行数:9,代码来源:Carrier.php


示例8: __construct

 public function __construct($channelId = null, $channelName = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->channelId = $channelId;
     $this->channelName = $channelName;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:sonicgd,项目名称:google-adwords-api-light,代码行数:9,代码来源:YouTubeChannel.php


示例9: __construct

 public function __construct($feedId = null, $matchingFunction = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->feedId = $feedId;
     $this->matchingFunction = $matchingFunction;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:antonsmolin,项目名称:google-ads-api-namespaced,代码行数:9,代码来源:LocationGroups.php


示例10: __construct

 public function __construct($userInterestId = null, $userInterestName = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->userInterestId = $userInterestId;
     $this->userInterestName = $userInterestName;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:anton-github,项目名称:google-adwords-api-light,代码行数:9,代码来源:CriterionUserInterest.php


示例11: __construct

 public function __construct($mobileAppCategoryId = null, $displayName = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->mobileAppCategoryId = $mobileAppCategoryId;
     $this->displayName = $displayName;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:anton-github,项目名称:google-adwords-api-light,代码行数:9,代码来源:MobileAppCategory.php


示例12: __construct

 public function __construct($text = null, $locale = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->text = $text;
     $this->locale = $locale;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:nediam,项目名称:adwords-lib,代码行数:9,代码来源:ProductService.php


示例13: __construct

 public function __construct($appId = null, $displayName = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->appId = $appId;
     $this->displayName = $displayName;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:anton-github,项目名称:google-adwords-api-light,代码行数:9,代码来源:MobileApplication.php


示例14: __construct

 public function __construct($conditions = null, $text = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->conditions = $conditions;
     $this->text = $text;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:anton-github,项目名称:google-adwords-api-light,代码行数:9,代码来源:Product.php


示例15: __construct

 public function __construct($partitionType = null, $parentCriterionId = null, $caseValue = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->partitionType = $partitionType;
     $this->parentCriterionId = $parentCriterionId;
     $this->caseValue = $caseValue;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:anton-github,项目名称:google-adwords-api-light,代码行数:10,代码来源:ProductPartition.php


示例16: __construct

 public function __construct($parameter = null, $criteriaCoverage = null, $criteriaSamples = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->parameter = $parameter;
     $this->criteriaCoverage = $criteriaCoverage;
     $this->criteriaSamples = $criteriaSamples;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:antonsmolin,项目名称:google-ads-api-namespaced,代码行数:10,代码来源:Webpage.php


示例17: __construct

 public function __construct($verticalId = null, $verticalParentId = null, $path = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->verticalId = $verticalId;
     $this->verticalParentId = $verticalParentId;
     $this->path = $path;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:nediam,项目名称:adwords-lib,代码行数:10,代码来源:Vertical.php


示例18: getResetTokenByUserId

 public function getResetTokenByUserId($userId, $token)
 {
     $criteria = new SelectCriteria($this->getDomain());
     $userCriteria = Criterion::_eq($this->getDomain(), "userId", $userId);
     $tokenCriteria = Criterion::_eq($this->getDomain(), "token", $token);
     $creationDate = Criterion::_gt($this->getDomain(), "creationDate", $this->getDateTime("-1 day"));
     $tokenDetailsCriteria = Criterion::_and($userCriteria, $tokenCriteria);
     $criteria->setCriteria(Criterion::_and($tokenDetailsCriteria, $creationDate));
     return $criteria->toUnique();
 }
开发者ID:euBatham,项目名称:javacature,代码行数:10,代码来源:ResetTokenDAO.class.php


示例19: getValidationTokenByToken

 /**
  * @param $userToken
  * @return MoldPAuthToken
  */
 private function getValidationTokenByToken($userToken)
 {
     $criteria = new SelectCriteria($this->getDomain());
     $userTokenCriterion = Criterion::_eq($this->getDomain(), "userToken", $userToken);
     $lastActiveDate = Criterion::_gt($this->getDomain(), "lastActiveDate", $this->getDateTime("-2 hours"));
     $creationDate = Criterion::_gt($this->getDomain(), "creationDate", $this->getDateTime("-1 day"));
     $dateCriteria = Criterion::_or($lastActiveDate, $creationDate);
     $criteria->setCriteria(Criterion::_and($userTokenCriterion, $dateCriteria));
     return $criteria->toUnique();
 }
开发者ID:euBatham,项目名称:aemos,代码行数:14,代码来源:MoldPAuthenticationManager.class.php


示例20: __construct

 public function __construct($keywordSetId = null, $name = null, $deprecated = null, $id = null, $type = null, $CriterionType = null)
 {
     parent::__construct();
     $this->keywordSetId = $keywordSetId;
     $this->name = $name;
     $this->deprecated = $deprecated;
     $this->id = $id;
     $this->type = $type;
     $this->CriterionType = $CriterionType;
 }
开发者ID:nediam,项目名称:adwords-lib,代码行数:10,代码来源:KeywordSet.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CriterionParameter类代码示例发布时间:2022-05-23
下一篇:
PHP CriteriaCompo类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap