Inheritance diagram for MagicDb:

Public Member Functions | |
| analyze ($file, $options=array()) | |
| read ($magicDb=null) | |
| toArray ($data=null) | |
| validates ($magicDb=null) | |
Public Attributes | |
| $db = array() | |
Definition at line 34 of file magic_db.php.
| MagicDb::analyze | ( | $ | file, | |
| $ | options = array() | |||
| ) |
Analyzes a given $file using the currently loaded MagicDb information based on the desired $options
| string | $file Absolute path to the file to analyze | |
| array | $options TBT |
Definition at line 155 of file magic_db.php.
| MagicDb::read | ( | $ | magicDb = null |
) |
Definition at line 49 of file magic_db.php.
References exists(), ext(), pwd(), toArray(), and validates().
Referenced by MagicFileResource::extract().
| MagicDb::toArray | ( | $ | data = null |
) |
Parses a MagicDb $data string into an array or returns the current MagicDb instance as an array
| string | $data A MagicDb string to turn into an array |
Definition at line 83 of file magic_db.php.
References $db.
Referenced by read(), and validates().
| MagicDb::validates | ( | $ | magicDb = null |
) |
Returns true if the MagicDb instance or the passed $magicDb is valid
| mixed | $magicDb A $magicDb string / array to validate (optional) |
Definition at line 137 of file magic_db.php.
References toArray().
Referenced by read().
| MagicDb::$db = array() |
1.4.7