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


PHP PSU::createSlug方法代码示例

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


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

示例1: _prep_args

 /**
  * prepares arguments for DML
  */
 protected function _prep_args()
 {
     // this is the data prepared for binding.
     // these fields are ordered as they are in the table
     $args = array('the_id' => $this->id, 'gate_id' => $this->gate_id, 'name' => $this->name, 'slug' => $this->slug ?: \PSU::createSlug($this->name), 'legacy_code' => $this->legacy_code);
     return $args;
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:10,代码来源:ChecklistItem.php

示例2: _prep_args

 /**
  * prepares arguments for DML
  */
 protected function _prep_args()
 {
     // this is the data prepared for binding.
     // these fields are ordered as they are in the table
     $args = array('the_id' => $this->id, 'sau_id' => $this->sau_id, 'district_id' => $this->district_id, 'school_type_id' => $this->school_type_id, 'school_approval_level_id' => $this->school_approval_level_id, 'name' => $this->name, 'slug' => $this->slug ?: \PSU::createSlug($this->name), 'grade_span' => $this->grade_span, 'enrollment' => $this->enrollment, 'street_line1' => $this->street_line1, 'street_line2' => $this->street_line2, 'city' => $this->city, 'state' => $this->state, 'zip' => $this->zip, 'phone' => $this->phone, 'fax' => $this->fax, 'legacy_code' => $this->legacy_code);
     return $args;
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:10,代码来源:School.php

示例3: _prep_args

 /**
  * prepares arguments for DML
  */
 protected function _prep_args()
 {
     // this is the data prepared for binding.
     // these fields are ordered as they are in the table
     $args = array('the_id' => $this->id, 'name' => $this->name, 'slug' => $this->slug ?: \PSU::createSlug($this->name), 'street_line1' => $this->street_line1, 'street_line2' => $this->street_line2, 'city' => $this->city, 'state' => $this->state, 'zip' => $this->zip, 'phone' => $this->phone, 'fax' => $this->fax, 'legacy_code' => $this->legacy_code);
     return $args;
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:10,代码来源:SAU.php

示例4: types

 public function types($search = null)
 {
     $types = array();
     foreach (self::items($search) as $item) {
         $types[\PSU::createSlug($item['type'])] = $item['type'];
     }
     //end foreach
     return $types;
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:9,代码来源:ITSurplusAPI.class.php

示例5: getReceivableNetAmount

 public function getReceivableNetAmount($params = '')
 {
     $params = \PSU::params($params);
     $token = '';
     if (count($params) == 0) {
         $token = 'total';
     } else {
         ksort($params);
         foreach ($params as $key => $param) {
             $token .= $key . $param;
         }
         //end foreach
     }
     //end else
     $token = \PSU::createSlug($token);
     if (isset($this->data['receivable_net_amount'][$token])) {
         $total = $this->data['receivable_net_amount'][$token];
     } else {
         $total = 0;
         $sql = "BEGIN :val := tb_receivable.f_sum_net_amount(p_pidm => :pidm";
         foreach ($params as $key => $p) {
             if ($key == 'bill_date' || $key == 'as_of_date') {
                 $sql .= ", p_" . $key . " => to_date('" . $p . "', 'RRRR-MM-DD')";
             } else {
                 $sql .= ", p_" . $key . " => :" . $key;
             }
         }
         //end foreach
         $sql .= "); END;";
         $stmt = \PSU::db('banner')->PrepareSP($sql);
         \PSU::db('banner')->InParameter($stmt, $this->pidm, 'pidm');
         foreach ($params as $key => $p) {
             if ($key != 'bill_date' && $key != 'as_of_date') {
                 \PSU::db('banner')->InParameter($stmt, $p, $key);
             }
         }
         //end foreach
         \PSU::db('banner')->OutParameter($stmt, $total, 'val');
         \PSU::db('banner')->Execute($stmt);
         $this->data['receivable_net_amount'][$token] = $total ? $total : 0;
     }
     //end else
     return $total;
 }
开发者ID:AholibamaSI,项目名称:plymouth-webapp,代码行数:44,代码来源:Bill.php


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