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


PHP DatabaseConnection::Unescape方法代码示例

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


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

示例1: Get

 /**
  * Gets object from database
  * @param integer $groupId 
  * @return object $Group
  */
 function Get($groupId)
 {
     $Database = new DatabaseConnection();
     $this->pog_query = "select * from `group` where `groupid`='" . intval($groupId) . "' LIMIT 1";
     $Database->Query($this->pog_query);
     $this->groupId = $Database->Result(0, "groupid");
     $this->name = $Database->Unescape($Database->Result(0, "name"));
     $this->desc = $Database->Unescape($Database->Result(0, "desc"));
     return $this;
 }
开发者ID:dreamvishnu,项目名称:tire-inventory,代码行数:15,代码来源:class.group.php

示例2: Get

 /**
  * Gets object from database
  * @param integer $supplierId 
  * @return object $Supplier
  */
 function Get($supplierId)
 {
     $Database = new DatabaseConnection();
     $this->pog_query = "select * from `supplier` where `supplierid`='" . intval($supplierId) . "' LIMIT 1";
     $Database->Query($this->pog_query);
     $this->supplierId = $Database->Result(0, "supplierid");
     $this->company = $Database->Unescape($Database->Result(0, "company"));
     $this->address1 = $Database->Unescape($Database->Result(0, "address1"));
     $this->address2 = $Database->Unescape($Database->Result(0, "address2"));
     $this->city = $Database->Unescape($Database->Result(0, "city"));
     $this->phone = $Database->Unescape($Database->Result(0, "phone"));
     $this->contactname = $Database->Unescape($Database->Result(0, "contactname"));
     $this->contactno = $Database->Unescape($Database->Result(0, "contactno"));
     $this->deleted = $Database->Unescape($Database->Result(0, "deleted"));
     return $this;
 }
开发者ID:dreamvishnu,项目名称:tire-inventory,代码行数:21,代码来源:class.supplier.php

示例3: Get

 /**
  * Gets object from database
  * @param integer $userId 
  * @return object $User
  */
 function Get($userId)
 {
     $Database = new DatabaseConnection();
     $this->pog_query = "select * from `user` where `userid`='" . intval($userId) . "' LIMIT 1";
     $Database->Query($this->pog_query);
     $this->userId = $Database->Result(0, "userid");
     $this->username = $Database->Unescape($Database->Result(0, "username"));
     $this->password = $Database->Unescape($Database->Result(0, "password"));
     $this->firstname = $Database->Unescape($Database->Result(0, "firstname"));
     $this->lastname = $Database->Unescape($Database->Result(0, "lastname"));
     $this->question = $Database->Unescape($Database->Result(0, "question"));
     $this->answer = $Database->Unescape($Database->Result(0, "answer"));
     $this->groupId = $Database->Result(0, "groupid");
     $this->lastlogin = $Database->Unescape($Database->Result(0, "lastlogin"));
     $this->disabled = $Database->Unescape($Database->Result(0, "disabled"));
     return $this;
 }
开发者ID:dreamvishnu,项目名称:tire-inventory,代码行数:22,代码来源:class.user.php

示例4: Get

 /**
  * Gets object from database
  * @param integer $customerId 
  * @return object $Customer
  */
 function Get($customerId)
 {
     $Database = new DatabaseConnection();
     $this->pog_query = "select * from `customer` where `customerid`='" . intval($customerId) . "' LIMIT 1";
     $Database->Query($this->pog_query);
     $this->customerId = $Database->Result(0, "customerid");
     $this->company = $Database->Unescape($Database->Result(0, "company"));
     $this->firstname = $Database->Unescape($Database->Result(0, "firstname"));
     $this->lastname = $Database->Unescape($Database->Result(0, "lastname"));
     $this->address1 = $Database->Unescape($Database->Result(0, "address1"));
     $this->address2 = $Database->Unescape($Database->Result(0, "address2"));
     $this->city = $Database->Unescape($Database->Result(0, "city"));
     $this->mobile = $Database->Unescape($Database->Result(0, "mobile"));
     $this->landline = $Database->Unescape($Database->Result(0, "landline"));
     $this->email = $Database->Unescape($Database->Result(0, "email"));
     $this->limit = $Database->Unescape($Database->Result(0, "limit"));
     $this->available = $Database->Unescape($Database->Result(0, "available"));
     $this->deleted = $Database->Unescape($Database->Result(0, "deleted"));
     return $this;
 }
开发者ID:dreamvishnu,项目名称:tire-inventory,代码行数:25,代码来源:class.customer.php


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