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 | public static function addMenu($options) |
||
82 | |||
83 | public static function getMenu() |
||
87 | |||
88 | public static function getProviders() |
||
92 | |||
93 | /** |
||
94 | * Use it only for third party Service Providers |
||
95 | * (Your main Service provider must be already declared for this to work) |
||
96 | * |
||
97 | * @param $provider |
||
98 | * @return mixed |
||
99 | */ |
||
100 | public static function addServiceProvider($provider) |
||
104 | |||
105 | |||
106 | /** |
||
107 | * @param $plugin |
||
108 | * @return mixed |
||
109 | */ |
||
110 | // public static function getPlugin($plugin) |
||
111 | // { |
||
112 | // return with(App::make('ArtificerPluginManager'))->make($plugin); |
||
113 | // } |
||
114 | |||
115 | // Todo is it used anywhere? |
||
116 | // public static function store($filepath = null, $content, $overide = false) |
||
117 | // { |
||
118 | // if (!$filepath) { |
||
119 | // $pathinfo = pathinfo($filepath); |
||
120 | // $filepath = $pathinfo['dirname']; |
||
121 | // } |
||
122 | // |
||
123 | // $path = explode('/', $filepath); |
||
124 | // array_pop($path); |
||
125 | // $path = join('/', $path); |
||
126 | // |
||
127 | // if (!file_exists($path)) { |
||
128 | // \File::makeDirectory($path, 0777, true, true); |
||
129 | // } |
||
130 | // |
||
131 | // if (!file_exists($filepath) || $overide) { |
||
132 | // return \File::put($filepath, $content); |
||
133 | // } |
||
134 | // |
||
135 | // return false; |
||
136 | // } |
||
137 | } |