1 | <?php namespace Mascame\Artificer; |
||
9 | class Artificer |
||
10 | { |
||
11 | |||
12 | public static $booted = false; |
||
13 | |||
14 | public static function isBooted() { |
||
17 | |||
18 | /** |
||
19 | * @return Model |
||
20 | */ |
||
21 | public static function getModel() |
||
25 | |||
26 | public static function assets() |
||
30 | |||
31 | public static function getCurrentModelId($items) |
||
35 | |||
36 | /** |
||
37 | * @param $t |
||
38 | * @return bool |
||
39 | */ |
||
40 | public static function isClosure($t) |
||
44 | |||
45 | /** |
||
46 | * @return PluginManager |
||
47 | */ |
||
48 | public static function pluginManager() |
||
52 | /** |
||
53 | * @param $plugin |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public static function getPlugin($plugin) |
||
60 | |||
61 | // Todo is it used anywhere? |
||
62 | // public static function store($filepath = null, $content, $overide = false) |
||
63 | // { |
||
64 | // if (!$filepath) { |
||
65 | // $pathinfo = pathinfo($filepath); |
||
66 | // $filepath = $pathinfo['dirname']; |
||
67 | // } |
||
68 | // |
||
69 | // $path = explode('/', $filepath); |
||
70 | // array_pop($path); |
||
71 | // $path = join('/', $path); |
||
72 | // |
||
73 | // if (!file_exists($path)) { |
||
74 | // \File::makeDirectory($path, 0777, true, true); |
||
75 | // } |
||
76 | // |
||
77 | // if (!file_exists($filepath) || $overide) { |
||
78 | // return \File::put($filepath, $content); |
||
79 | // } |
||
80 | // |
||
81 | // return false; |
||
82 | // } |
||
83 | } |