芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/suretriggers/src/Integrations/Integrations.php
process_events(); } /** * Process and get all events * * @return void */ public function process_events() { $events = EventController::get_instance(); if ( ! empty( $events->triggers[ $this->id ] ) ) { $this->triggers = $events->triggers[ $this->id ]; } if ( ! empty( $events->actions[ $this->id ] ) ) { $this->actions = $events->actions[ $this->id ]; } } /** * If enabled or not * * @return bool */ public function is_enabled() { return (bool) $this->is_plugin_installed(); } /** * Check if plugin is installed. * * @return bool */ abstract public function is_plugin_installed(); /** * Returns ID * * @return string */ public function get_id() { return $this->id; } /** * Returns integration name * * @return string */ public function get_name() { return $this->name; } /** * Returns integration description * * @return string */ public function get_description() { return $this->description; } /** * Get the integration URL * * @return string */ public function get_icon_url() { return $this->icon_url; } /** * Get config form fields * * @return array */ public function get_config_fields() { return $this->config_fields; } /** * Get saved * * @return array */ public function get_config() { return $this->config; } /** * Get errors if any * * @return array */ public function get_errors() { return $this->errors; } /** * Determine if the form is require validation. * * @return bool */ public function form_validation() { return $this->form_validation; } /** * Get API key page URL * * @return bool */ public function get_api_page_url() { return $this->api_page_url; } /** * Get actions if any * * @return array */ public function get_actions() { return $this->actions; } /** * Get triggers if any * * @return array */ public function get_triggers() { return $this->triggers; } /** * Default validation abstract method (optional) * * @param array $args Form input as $args. * * @return false */ public function validation( $args = [] ) { return false; } }