1 | <?php namespace Mascame\Artificer; |
||
8 | class Artificer |
||
9 | { |
||
10 | |||
11 | public static $booted = false; |
||
12 | |||
13 | public static function isBooted() { |
||
16 | |||
17 | public static function assets() |
||
21 | |||
22 | public static function getCurrentModelId($items) |
||
26 | |||
27 | /** |
||
28 | * @param $t |
||
29 | * @return bool |
||
30 | */ |
||
31 | public static function isClosure($t) |
||
35 | |||
36 | /** |
||
37 | * @return PluginManager |
||
38 | */ |
||
39 | public static function pluginManager() |
||
43 | /** |
||
44 | * @param $plugin |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public static function getPlugin($plugin) |
||
51 | |||
52 | // Todo is it used anywhere? |
||
53 | // public static function store($filepath = null, $content, $overide = false) |
||
54 | // { |
||
55 | // if (!$filepath) { |
||
56 | // $pathinfo = pathinfo($filepath); |
||
57 | // $filepath = $pathinfo['dirname']; |
||
58 | // } |
||
59 | // |
||
60 | // $path = explode('/', $filepath); |
||
61 | // array_pop($path); |
||
62 | // $path = join('/', $path); |
||
63 | // |
||
64 | // if (!file_exists($path)) { |
||
65 | // \File::makeDirectory($path, 0777, true, true); |
||
66 | // } |
||
67 | // |
||
68 | // if (!file_exists($filepath) || $overide) { |
||
69 | // return \File::put($filepath, $content); |
||
70 | // } |
||
71 | // |
||
72 | // return false; |
||
73 | // } |
||
74 | } |