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


PHP Dal::quote方法代码示例

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


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

示例1: is_network_valid

 public static function is_network_valid($network_name)
 {
     return Dal::query_first("SHOW TABLES LIKE '" . Dal::quote($network_name) . "_comments'") ? TRUE : FALSE;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:4,代码来源:DbUpdate.php

示例2: table_exists

 function table_exists($tablename)
 {
     //$sql = "DESCRIBE $tablename";
     $sql = "SHOW TABLES LIKE '" . Dal::quote($tablename) . "'";
     $res = Dal::query($sql);
     while (list($tname) = Dal::row($res)) {
         if ($tname == $tablename) {
             return TRUE;
         }
     }
     return FALSE;
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:12,代码来源:net_extra.class.php

示例3: search

 static function search($text, $limit = 0)
 {
     $text = Dal::quote($text);
     $limit_sql = $limit ? " LIMIT {$limit}" : "";
     $sth = Dal::query("SELECT content_id, comment_id FROM {comments} WHERE is_active = 1 AND (name LIKE '%{$text}%' OR subject LIKE '%{$text}%' OR homepage LIKE '%{$text}%' OR comment LIKE '%{$text}%') {$limit_sql}");
     return Dal::all_assoc($sth);
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:7,代码来源:Comment.php

示例4: findByTitle

 public static function findByTitle($title)
 {
     $enc_title = Dal::quote($title);
     $groups = array();
     $sth = Dal::query("SELECT collection_id,title FROM {contentcollections} WHERE title LIKE '%{$enc_title}%' AND is_active=1");
     while ($r = Dal::row($sth)) {
         list($ccid, $title) = $r;
         $groups[] = array('ccid' => (int) $ccid, 'title' => $title);
     }
     return $groups;
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:11,代码来源:ContentCollection.php

示例5: table_exists

 function table_exists($tablename)
 {
     $sql = 'SHOW TABLES LIKE \'' . Dal::quote($tablename) . '\'';
     $res = Dal::query($sql);
     while (list($tname) = Dal::row($res)) {
         if ($tname == $tablename) {
             return TRUE;
         }
     }
     return FALSE;
 }
开发者ID:CivicCommons,项目名称:people-aggregator,代码行数:11,代码来源:db_update_page.class.php

示例6: find_descendants

 function find_descendants($parent_path)
 {
     $ret = array();
     if (!preg_match("|/\$|", $parent_path)) {
         $parent_path .= "/";
     }
     $sth = Dal::query("SELECT path, kind FROM svn_objects WHERE is_active=1 AND path LIKE '" . Dal::quote($parent_path) . "%' ORDER BY path DESC");
     while (list($path, $kind) = Dal::row($sth)) {
         $ret[] = array('path' => $path, 'kind' => $kind);
     }
     return $ret;
 }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:12,代码来源:PAStateStore.php


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