首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > Low footprint, object-oriented model for dealing with mysql tables in PHP5

Low footprint, object-oriented model for dealing with mysql tables in PHP5

  • 资源大小:4.25 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

tableModel is a relatively small class (weighing in at only 317 lines and 9813 bytes without comments) that allows the developer to interact with MySQL tables as if they were... stdClasses: $myTable->columnName = 12; Arrays: $myTable[] = array("col1"=>"val1", "col2"=>"val2"); jQuery objects: foreach ($myTable ->find("col1=%Q", $val1) ->filter("col2=%Q", $val2) as $index=>$item) var_dump($index, $item); And much more! tableModel makes good use of the new magic methods and interfaces found in PHP5"s SPL. At present, it implements set, get, isset, ArrayAccess, Countable, and Iterator. Their use is generally intuitive, so you won"t likely be checking out the documentation too often. Additionally, I made it a point to avoid using so much overloading that the basics aren"t both available and extended: there are ->_query (raw mysql_query), ->query (mysql query a

文 件 列 表

modeldocumentation.php
tablemodel.php

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP