1 | <?php namespace Mascame\Artificer; |
||
10 | class Artificer |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Returns the current user's action. |
||
15 | * |
||
16 | * @return null|string |
||
17 | */ |
||
18 | public static function getCurrentAction() |
||
34 | |||
35 | /** |
||
36 | * @return Model |
||
37 | */ |
||
38 | public static function getModel() |
||
42 | |||
43 | public static function assets() |
||
47 | |||
48 | public static function getCurrentModelId($items) |
||
52 | |||
53 | /** |
||
54 | * @param $t |
||
55 | * @return bool |
||
56 | */ |
||
57 | public static function isClosure($t) |
||
61 | |||
62 | /** |
||
63 | * @return PluginManager |
||
64 | */ |
||
65 | public static function pluginManager() |
||
69 | |||
70 | /** |
||
71 | * @return WidgetManager |
||
72 | */ |
||
73 | public static function widgetManager() |
||
77 | /** |
||
78 | * @param $plugin |
||
79 | * @return mixed |
||
80 | */ |
||
81 | // public static function getPlugin($plugin) |
||
82 | // { |
||
83 | // return with(App::make('ArtificerPluginManager'))->make($plugin); |
||
84 | // } |
||
85 | |||
86 | // Todo is it used anywhere? |
||
87 | // public static function store($filepath = null, $content, $overide = false) |
||
88 | // { |
||
89 | // if (!$filepath) { |
||
90 | // $pathinfo = pathinfo($filepath); |
||
91 | // $filepath = $pathinfo['dirname']; |
||
92 | // } |
||
93 | // |
||
94 | // $path = explode('/', $filepath); |
||
95 | // array_pop($path); |
||
96 | // $path = join('/', $path); |
||
97 | // |
||
98 | // if (!file_exists($path)) { |
||
99 | // \File::makeDirectory($path, 0777, true, true); |
||
100 | // } |
||
101 | // |
||
102 | // if (!file_exists($filepath) || $overide) { |
||
103 | // return \File::put($filepath, $content); |
||
104 | // } |
||
105 | // |
||
106 | // return false; |
||
107 | // } |
||
108 | } |