-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApplicationStorageInterface.php
62 lines (55 loc) · 1.42 KB
/
ApplicationStorageInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php if ( ! defined('DENY_ACCESS')) exit('403: No direct file access allowed');
/**
* A Bright CMS
*
* Open source, lightweight, web application framework and content management
* system in PHP.
*
* @package A Bright CMS
* @author Gabriel Liwerant
*/
/**
* ApplicationStorageInterface Interface
*
* Forces essential methods onto basic storage classes for our Application.
*
* @subpackage core
* @author Gabriel Liwerant
*/
interface ApplicationStorageInterface
{
/**
* Store associative array of file contents.
*
* @param string $data_file_path
* @param string $key
*/
public function setFileAsArray($data_file_path, $key);
/**
* Retrieve file contents as associative array.
*
* @param string $data_file_name
*/
public function getFileAsArray($data_file_name);
/**
* Retrieve all file contents as associative array.
*/
public function getAllDataAsArray();
/**
* Retrieve a string value encoded in our storage format.
*
* @param string $string
*/
public function getEncodedDataAsString($string);
/**
* Make string values of true or false into booleans.
*
* @deprecated method is dangerous and unnecessary, we should use 0 | 1 and
* cast them as boolean instead
*
* @param string $psuedo_boolean
*/
public function getStringValueAsBoolean($psuedo_boolean);
}
// End of ApplicationStorageInterface Interface
/* EOF system/core/ApplicationStorageInterface.php */