PHP Classes

File: src/Nanobase.php

Recommend this page to a friend!
  Classes of Sheldon Kennedy   Nanobase   src/Nanobase.php  
File: src/Nanobase.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Nanobase
Manage database tables stored in text files
Author: By
Last change: Added count()

- Records can now be counted using count(), without running a search.
- $limit, $isWhole and $isCase are now passed as arguments.
Fix list()

list() now reads multiple records correctly.
Typecast column keys to integers.

Added typecast to column keys as they are added to the $allKeys array. Thanks to Randy Brachman.
Update loadPositions()

Update loadPositions() $file var with null coalescing operator.
Remove rewind() from loadPositions()

rewind() on each iteration was causing performance issue
append() renamed to attach()

append() renamed to attach() for a more consistent naming style.
Change return types

1) read() and list() now return false if there are no entries found.
2) When isReport() is false, exceptions will now simply return false instead of die(false).
Fix bug in detach()

Bug: detach() was not removing the first list item.
Fix: Added is_int() to the condition.
Date: 1 year ago
Size: 51,590 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on: