/** * Constructor magic method. * Private because this class should not be called on its own. */ public function __construct() { self::stripslashes(); self::$self_url = 'admin.php?page=wpinventory'; self::$item = new WPIMItem(); self::$category = new WPIMCategory(); self::$label = new WPIMLabel(); self::prep_sort(); }