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


PHP JobPeer::getTableMap方法代码示例

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


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

示例1: getPhpNameMap

 public static function getPhpNameMap()
 {
     if (self::$phpNameMap === null) {
         $map = JobPeer::getTableMap();
         $columns = $map->getColumns();
         $nameMap = array();
         foreach ($columns as $column) {
             $nameMap[$column->getPhpName()] = $column->getColumnName();
         }
         self::$phpNameMap = $nameMap;
     }
     return self::$phpNameMap;
 }
开发者ID:taryono,项目名称:school,代码行数:13,代码来源:BaseJobPeer.php

示例2: filter

 public function filter($c, $filters)
 {
     $group = $this->getContext()->getUser()->getAttribute('group', null, 'bo');
     if ($group != 'root') {
         $this->forward('default', 'index');
     }
     $filters_key = array_keys($filters);
     foreach ($filters_key as $key) {
         $value = $filters[$key];
         if ($value == '' || $value == null) {
             continue;
         }
         if ($key == 'name') {
             $column = JobI18nPeer::getTableMap()->getColumn($key);
         } else {
             $column = JobPeer::getTableMap()->getColumn($key);
         }
         $name = $column->getFullyQualifiedName();
         $creoleType = $column->getCreoleType();
         if ($creoleType == CreoleTypes::TIMESTAMP) {
             $from = $value['from'];
             $to = $value['to'];
             if ($from != '' && $from != null) {
                 $c->add($name, $from, Criteria::GREATER_EQUAL);
             }
             if ($to != '' && $to != null) {
                 $c->add($name, $to, Criteria::LESS_EQUAL);
             }
         } else {
             if ($creoleType == CreoleTypes::INTEGER) {
                 $c->add($name, $value);
             } else {
                 if ($creoleType == CreoleTypes::VARCHAR) {
                     if ($key == 'name') {
                         $c->addJoin(JobI18nPeer::ID, JobPeer::ID, Criteria::LEFT_JOIN);
                         $c->add($name, "%{$value}%", Criteria::LIKE);
                     } else {
                         $c->add($name, "%{$value}%", Criteria::LIKE);
                     }
                 }
             }
         }
     }
 }
开发者ID:taryono,项目名称:school,代码行数:44,代码来源:actions.class.php

示例3: filter

 public function filter($c, $filters)
 {
     $filters_key = array_keys($filters);
     foreach ($filters_key as $key) {
         $value = $filters[$key];
         if ($value == '' || $value == null) {
             continue;
         }
         if ($key == 'PUBLIC_INFORMATION_ID') {
             $c->addJoin(JobInformationPeer::JOB_ID, JobPeer::ID);
             $c->addJoin(PublicInformationPeer::ID, JobInformationPeer::PUBLIC_INFORMATION_ID);
             $column = PublicInformationPeer::getTableMap()->getColumn('ID');
         } elseif ($key == 'JOB_CATEGORY_ID') {
             $c->addJoin(JobInformationPeer::JOB_ID, JobPeer::ID);
             $c->addJoin(JobCategoryPeer::ID, JobInformationPeer::JOB_CATEGORY_ID);
             $column = JobCategoryPeer::getTableMap()->getColumn('ID');
         } else {
             $column = JobPeer::getTableMap()->getColumn($key);
         }
         $name = $column->getFullyQualifiedName();
         $creoleType = $column->getCreoleType();
         if ($creoleType == CreoleTypes::TIMESTAMP) {
             $c->add($name, $value, Criteria::EQUAL);
         } else {
             if ($creoleType == CreoleTypes::INTEGER) {
                 $c->add($name, $value, Criteria::EQUAL);
             } else {
                 if ($creoleType == CreoleTypes::VARCHAR) {
                     $c->add($name, "%{$value}%", Criteria::LIKE);
                 } else {
                     if ($creoleType == CreoleTypes::CHAR) {
                         $c->add($name, "%{$value}%", Criteria::LIKE);
                     }
                 }
             }
         }
     }
 }
开发者ID:taryono,项目名称:school,代码行数:38,代码来源:actions.class.php


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