get_name(); do_action( $action_name, $this ); return $this; } /** @brief Mark the action as finished. @since 2014-04-27 14:02:14 **/ public function finish( $finished = true ) { return $this->set_boolean( 'finished', $finished ); } /** @brief @since 2014-04-27 14:03:56 **/ public function get_name() { $class_name = get_class( $this ); $class_name = preg_replace( '/.*\\\\/', '', $class_name ); return sprintf( '%s%s%s', $this->get_prefix(), $class_name, $this->get_suffix() ); } /** @brief Get action prefix. @details Optional prefix for all actions using this class. Suggest ending the prefix with an underscore. @since 2014-04-27 13:56:10 **/ public function get_prefix() { return ''; } /** @brief Get suffix prefix. @since 2014-04-27 13:56:10 **/ public function get_suffix() { return ''; } /** @brief Is the action finished? Should it be left alone? @since 2014-04-27 14:01:47 **/ public function is_finished() { return $this->finished; } }