1 | <?php namespace Mascame\Artificer; |
||
9 | class Artificer |
||
10 | { |
||
11 | |||
12 | public static $booted = false; |
||
13 | |||
14 | public static function isBooted() { |
||
17 | |||
18 | /** |
||
19 | * Returns the current user's action. |
||
20 | * |
||
21 | * @return null|string |
||
22 | */ |
||
23 | public static function getCurrentAction() |
||
38 | |||
39 | /** |
||
40 | * @return Model |
||
41 | */ |
||
42 | public static function getModel() |
||
46 | |||
47 | public static function assets() |
||
51 | |||
52 | public static function getCurrentModelId($items) |
||
56 | |||
57 | /** |
||
58 | * @param $t |
||
59 | * @return bool |
||
60 | */ |
||
61 | public static function isClosure($t) |
||
65 | |||
66 | /** |
||
67 | * @return PluginManager |
||
68 | */ |
||
69 | public static function pluginManager() |
||
73 | /** |
||
74 | * @param $plugin |
||
75 | * @return mixed |
||
76 | */ |
||
77 | public static function getPlugin($plugin) |
||
81 | |||
82 | // Todo is it used anywhere? |
||
83 | // public static function store($filepath = null, $content, $overide = false) |
||
84 | // { |
||
85 | // if (!$filepath) { |
||
86 | // $pathinfo = pathinfo($filepath); |
||
87 | // $filepath = $pathinfo['dirname']; |
||
88 | // } |
||
89 | // |
||
90 | // $path = explode('/', $filepath); |
||
91 | // array_pop($path); |
||
92 | // $path = join('/', $path); |
||
93 | // |
||
94 | // if (!file_exists($path)) { |
||
95 | // \File::makeDirectory($path, 0777, true, true); |
||
96 | // } |
||
97 | // |
||
98 | // if (!file_exists($filepath) || $overide) { |
||
99 | // return \File::put($filepath, $content); |
||
100 | // } |
||
101 | // |
||
102 | // return false; |
||
103 | // } |
||
104 | } |