API / Minn\Admin / AdminArgs

AdminArgs final class

Minn\Admin\AdminArgs · public/minn/src/Minn/Admin/AdminArgs.php · 29 lines

The arguments Minn Admin's own routes register, as the reference lists them with the plugin running there: declared, the router judges them before the caller, as the reference does, so a bad value is a 400 even for someone signed out. Each set names the handler that reads it.

Constants and properties

constOVERVIEW = array ( 'days' => array ( 'type' => 'integer', 'default' => 30, 'minimum' => 7, 'maximum' => 90, 'required' => false, ), )

Read by OverviewController::overview(): the window the charts cover, in days.

constACTIVITY = array ( 'from' => array ( 'type' => 'string', 'pattern' => '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$', 'required' => true, ), 'to' => array ( 'type' => 'string', 'pattern' => '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$', 'required' => true, ), )

Read by OverviewController::overviewActivity(): the bounds of one chart bar.

constTHEME_SEARCH = array ( 'q' => array ( 'type' => 'string', 'required' => true, ), )

Read by PackagesController::searchThemes(): the words searched for.

constPLUGIN_SEARCH = array ( 'q' => array ( 'type' => 'string', 'required' => true, ), 'page' => array ( 'type' => 'integer', 'default' => 1, 'minimum' => 1, 'required' => false, ), )

Read by PackagesController::searchPlugins(): the words searched for and the page of results.

constPLUGIN_INFO = array ( 'slug' => array ( 'type' => 'string', 'required' => true, ), )

Read by PackagesController::pluginInfo(): the directory slug.