1 | <?php namespace Mascame\Artificer; |
||
7 | class Artificer |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Returns the current user's action. |
||
12 | * |
||
13 | * @return null|string list, edit, create, show |
||
14 | */ |
||
15 | public static function getCurrentAction() |
||
31 | |||
32 | /** |
||
33 | * @return Model |
||
34 | */ |
||
35 | public static function getModel() |
||
39 | |||
40 | /** |
||
41 | * @return \Mascame\Artificer\Plugin\Manager |
||
42 | */ |
||
43 | public static function pluginManager() |
||
47 | |||
48 | /** |
||
49 | * @return \Mascame\Artificer\Widget\Manager |
||
50 | */ |
||
51 | public static function widgetManager() |
||
55 | |||
56 | protected static function buildStyles($styles) { |
||
59 | |||
60 | public static function getCurrentModelId($items) |
||
64 | |||
65 | |||
66 | public static function addMenu($options) |
||
70 | |||
71 | protected static function getMenu() |
||
75 | |||
76 | // Todo is it used anywhere? |
||
77 | // public static function store($filepath = null, $content, $overide = false) |
||
78 | // { |
||
79 | // if (!$filepath) { |
||
80 | // $pathinfo = pathinfo($filepath); |
||
81 | // $filepath = $pathinfo['dirname']; |
||
82 | // } |
||
83 | // |
||
84 | // $path = explode('/', $filepath); |
||
85 | // array_pop($path); |
||
86 | // $path = join('/', $path); |
||
87 | // |
||
88 | // if (!file_exists($path)) { |
||
89 | // \File::makeDirectory($path, 0777, true, true); |
||
90 | // } |
||
91 | // |
||
92 | // if (!file_exists($filepath) || $overide) { |
||
93 | // return \File::put($filepath, $content); |
||
94 | // } |
||
95 | // |
||
96 | // return false; |
||
97 | // } |
||
98 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.