1 | <?php namespace Mascame\Artificer; |
||
11 | class Artificer |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Returns the current user's action. |
||
16 | * |
||
17 | * @return null|string list, edit, create, show |
||
18 | */ |
||
19 | public static function getCurrentAction() |
||
35 | |||
36 | /** |
||
37 | * @return Model |
||
38 | */ |
||
39 | public static function getModel() |
||
43 | |||
44 | /** |
||
45 | * @return \Mascame\Artificer\Plugin\Manager |
||
46 | */ |
||
47 | public static function pluginManager() |
||
51 | |||
52 | /** |
||
53 | * @return \Mascame\Artificer\Widget\Manager |
||
54 | */ |
||
55 | public static function widgetManager() |
||
59 | |||
60 | /** |
||
61 | * Todo: only output assets of installed widgets |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | public static function assets() |
||
86 | |||
87 | protected static function buildStyles($styles) { |
||
90 | |||
91 | protected static function buildScripts($scripts) { |
||
97 | |||
98 | public static function getCurrentModelId($items) |
||
102 | |||
103 | |||
104 | public static function addMenu($options) |
||
108 | |||
109 | protected static function getMenu() |
||
113 | |||
114 | /** |
||
115 | * @param $plugin |
||
116 | * @return mixed |
||
117 | */ |
||
118 | // public static function getPlugin($plugin) |
||
119 | // { |
||
120 | // return with(App::make('ArtificerPluginManager'))->make($plugin); |
||
121 | // } |
||
122 | |||
123 | // Todo is it used anywhere? |
||
124 | // public static function store($filepath = null, $content, $overide = false) |
||
125 | // { |
||
126 | // if (!$filepath) { |
||
127 | // $pathinfo = pathinfo($filepath); |
||
128 | // $filepath = $pathinfo['dirname']; |
||
129 | // } |
||
130 | // |
||
131 | // $path = explode('/', $filepath); |
||
132 | // array_pop($path); |
||
133 | // $path = join('/', $path); |
||
134 | // |
||
135 | // if (!file_exists($path)) { |
||
136 | // \File::makeDirectory($path, 0777, true, true); |
||
137 | // } |
||
138 | // |
||
139 | // if (!file_exists($filepath) || $overide) { |
||
140 | // return \File::put($filepath, $content); |
||
141 | // } |
||
142 | // |
||
143 | // return false; |
||
144 | // } |
||
145 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.