public function init() { $model = new waContactCategoryModel(); $items = $model->getNames(); $this->addItem('create', _w('Can add contacts'), 'checkbox'); $this->addItem('category', _w('Available categories'), 'list', array('items' => $items, 'hint1' => 'all_checkbox')); wa()->event('rights.config', $this); if (!self::$model) { self::$model = new contactsRightsModel(); } }