( $editFormMenu = new Editor\MenuPages\Editor\Page() ), self::RAW_EDITOR_SERVICE_OBJECT_KEY => new Editor\MenuPages\Editor\RawEdit( $editFormMenu ) ) ); # Add Network Dashboard menu in MULTISITES installation # or add administrator menu page in normal installation if ( is_multisite() ) { $services[ self::EDITOR_SERVICE_KEY ]->setHook( 'network_admin_menu' ); } # Ajax endpoint $services[ self::EDITOR_AJAX_SERVICE_KEY ] = new AjaxService ( $plugin, array ( self::EDITOR_AJAX_SERVICE_OBJECT_KEY => new Editor\Services\Editor\Ajax(), self::EDITOR_AJAX_VIEWS_SERVICE_OBJECT_KEY => new Editor\Services\Editor\AjaxViews() ) ); } /** * put your comment there... * */ public function editor() { return $this->getServiceObject( self::EDITOR_SERVICE_KEY, self::EDITOR_SERVICE_OBJECT_KEY ); } /** * put your comment there... * */ public function editorService() { return $this->getServiceObject( self::EDITOR_AJAX_SERVICE_KEY, self::EDITOR_AJAX_SERVICE_OBJECT_KEY ); } /** * put your comment there... * */ public function editorViews() { return $this->getServiceObject( self::EDITOR_AJAX_SERVICE_KEY, self::EDITOR_AJAX_VIEWS_SERVICE_OBJECT_KEY ); } /** * put your comment there... * */ public function rawEditor() { return $this->getServiceObject( self::EDITOR_SERVICE_KEY, self::RAW_EDITOR_SERVICE_OBJECT_KEY ); } }