filename
stringlengths
11
137
content
stringlengths
6
292k
projects/plugins/crm/modules/mailpoet/includes/class-mailpoet-segment-conditions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * MailPoet: Segment Conditions * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * MailPoet Segment Conditions class */ class Mailpoet_Segment_Conditions { /** * An array of our segment condition class ...
projects/plugins/crm/modules/mailpoet/includes/class-mailpoet-background-sync.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * MailPoet Sync: Background Sync * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * MailPoet Background Sync class */ class Mailpoet_Background_Sync { /** * If set to true this will echo progress of a ...
projects/plugins/crm/modules/mailpoet/includes/segment-conditions/class-segment-condition-mailpoet-subscriber.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * MailPoet Sync: Segment Condition: Is MailPoet Subscriber * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * MailPoet Sync: Segment Condition: Is MailPoet Subscriber class */ class Segment_Condition_Mailpoet_Subscriber extends zeroBSCRM_...
projects/plugins/crm/modules/mailpoet/admin/settings/router.page.php
<?php /** * Jetpack CRM * https://jetpackcrm.com * * MailPoet Sync: Admin: Settings page */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: MailPoet Sync Settings */ function jpcrm_settings_page_html_mailpoet() { global $zbs; $page = $_GET['tab']; ...
projects/plugins/crm/modules/mailpoet/admin/settings/main.page.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * MailPoet Sync: Admin: Settings page * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: MailPoet Sync Settings */ function jpcrm_settings_page_html_mailpoet_main(){ global $zbs; $settings = $zbs...
projects/plugins/crm/modules/mailpoet/admin/mailpoet-hub/main.page.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * MailPoet Sync: Admin: Hub page * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: MailPoet Sync Hub */ function jpcrm_mailpoet_render_hub_page() { global $zbs; // any messages to output $general_notices = array(); $error_not...
projects/plugins/crm/modules/mailpoet/admin/mailpoet-hub/main.page.ajax.php
<?php /** * Fired by AJAX on hub page (where still contacts to import, checks nonce and initiates sync) */ function jpcrm_mailpoet_ajax_import_subscribers( ){ global $zbs; // verify nonce check_ajax_referer( 'jpcrm_mailpoet_hubsync', 'sec' ); // init $return = $zbs->modules->mailpoet->background_sync->sync_s...
projects/plugins/crm/modules/portal/class-client-portal-endpoint.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Client Portal Endpoint * */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; /** * * This class represents a single Client Portal endpoint (e.g. Quotes) * */ #[\AllowDynamicProperties] abstract class Client_Portal_Endpoint { public $port...
projects/plugins/crm/modules/portal/class-client-portal-render-helper.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Client Portal Render Helper * */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; /** * * Client Portal class that helps rendering the Client Portal HTML. * */ class Client_Portal_Render_Helper { public $parent_portal; public function ...
projects/plugins/crm/modules/portal/jpcrm-compatibility-functions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * This file was intended to provide a 'proxy' for all the functions that were * brutally chopped during the Client Portal refactor. * But for now it seems like just displaying a notice to update the * version of core is a good option. * */ defined( 'ZEROBSCRM_PATH' ) ...
projects/plugins/crm/modules/portal/class-client-portal.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * Client Portal Module * */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; require_once plugin_dir_path( __FILE__ ) . 'class-client-portal-endpoint.php'; /** * * Client Portal Module class for Jetpack CRM. * To add a new endpoint use one o...
projects/plugins/crm/modules/portal/class-client-portal-router.php
<?php /** * Jetpack CRM * https://jetpackcrm.com * * Client Portal Router * * @package automattic/jetpack-crm */ namespace Automattic\JetpackCRM; defined( 'ZEROBSCRM_PATH' ) || exit; /** * Client Portal class that takes care of all the routing */ class Client_Portal_Router { /** * Redirect CRM contacts t...
projects/plugins/crm/modules/portal/jpcrm-portal-init.php
<?php if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; /** * This function inits everything needed. * This is the only function directly called by this php file. */ function jpcrm_portal_init() { add_filter( 'jpcrm_register_free_extensions', 'jpcrm_register_free_extension_portal' ); add_action( 'jpcrm_load_modules', 'jpc...
projects/plugins/crm/modules/portal/endpoints/class-invoices-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Invoices_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { if ( zeroBSCRM_getSetting( 'feat_invs' ) > 0 ) { $new_endpoint = new Invoices_Endpoint( $client_por...
projects/plugins/crm/modules/portal/endpoints/class-details-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Details_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { $new_endpoint = new Details_Endpoint( $client_portal ); $new_endpoint->portal ...
projects/plugins/crm/modules/portal/endpoints/class-transactions-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Transactions_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { if ( zeroBSCRM_getSetting( 'feat_transactions' ) > 0 ) { $new_endpoint = new Transactions_Endpo...
projects/plugins/crm/modules/portal/endpoints/class-dashboard-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Dashboard_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { $new_endpoint = new Dashboard_Endpoint( $client_portal ); $new_endpoint->portal ...
projects/plugins/crm/modules/portal/endpoints/class-payments-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Payments_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { $new_endpoint = new Payments_Endpoint( $client_portal ); $new_endpoint->portal ...
projects/plugins/crm/modules/portal/endpoints/class-thanks-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Thanks_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { $new_endpoint = new Thanks_Endpoint( $client_portal ); $new_endpoint->portal = ...
projects/plugins/crm/modules/portal/endpoints/class-cancel-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Cancel_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { $new_endpoint = new Cancel_Endpoint( $client_portal ); $new_endpoint->portal = ...
projects/plugins/crm/modules/portal/endpoints/class-single-quote-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Single_Quote_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { global $zbs; if ( zeroBSCRM_getSetting( 'feat_quotes' ) > 0 ) { $new_endpoint = new Single_Q...
projects/plugins/crm/modules/portal/endpoints/class-quotes-endpoint.php
<?php namespace Automattic\JetpackCRM; if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; class Quotes_Endpoint extends Client_Portal_Endpoint { public static function register_endpoint( $endpoints, $client_portal ) { if ( zeroBSCRM_getSetting( 'feat_quotes' ) > 0 ) { $new_endpoint = new Quotes_Endpoint( $client_porta...
projects/plugins/crm/modules/portal/templates/transactions.php
<?php /** * Transaction List * * The list of transactions made by a user (all statuses) * * @author ZeroBSCRM * @package Templates/Portal/Transactions * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal ...
projects/plugins/crm/modules/portal/templates/login.php
<?php /** * Login Template * * This is the login page for the Portal * * @author ZeroBSCRM * @package Templates/Portal/Login * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; global $zbs; $portal = $zbs->modules->portal; do_action( 'zbs_enqueue_scripts_and_...
projects/plugins/crm/modules/portal/templates/dashboard.php
<?php /** * Portal Dashboard Page * * This is used as the main dashboard page of the portal * * @author ZeroBSCRM * @package Templates/Portal/Dashboard * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal = $z...
projects/plugins/crm/modules/portal/templates/details.php
<?php /** * Your Details Page * * This displays the users details for editing * * @author ZeroBSCRM * @package Templates/Portal/Details * @see https://kb.jetpackcrm.com/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal = $zbs->modules->porta...
projects/plugins/crm/modules/portal/templates/thank-you.php
<?php /** * Payment Thank You * * This is used as a 'Payment Confirmation' when payment success * * @author ZeroBSCRM * @package Templates/Portal/Thanks * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal = $zb...
projects/plugins/crm/modules/portal/templates/cancelled.php
<?php /** * Payment Cancelled Page * * This is used as a 'Payment Cancelled' page following a cancelled payment * * @author ZeroBSCRM * @package Templates/Portal/Cancelled * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global ...
projects/plugins/crm/modules/portal/templates/single-quote.php
<?php /** * Single Quote Template * * The Single Quote Portal Page * * @author ZeroBSCRM * @package Templates/Portal/Quote * @see https://kb.jetpackcrm.com/ * @version 3.0 * */ // Don't allow direct access if ( ! defined( 'ABSPATH' ) ) exit; global $zbs; $portal = $zbs->modules->portal; $single_q...
projects/plugins/crm/modules/portal/templates/quotes.php
<?php /** * Quote List Page * * This list of Quotes for the Portal * * @author ZeroBSCRM * @package Templates/Portal/Quotes * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; global $zbs; $portal = $zbs->modules->portal; $ZBSuseQuotes = zeroBSCRM_getSetting...
projects/plugins/crm/modules/portal/templates/disabled.php
<?php /** * Account Disabled * * This is shown if a users Portal access is disabled * * @author ZeroBSCRM * @package Templates/Portal/Disabled * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal = $zbs->modul...
projects/plugins/crm/modules/portal/templates/footer.php
<?php /** * Footer template? * * Is this actually used anywhere? If so, the reference is pretty well hidden. * * @author ZeroBSCRM * @package Templates/Portal/Footer * @see https://jetpackcrm.com/kb/ */
projects/plugins/crm/modules/portal/templates/invoices.php
<?php /** * Invoice List Page * * The list of Invoices for the Portal * * @author ZeroBSCRM * @package Templates/Portal/Invoices * @see https://jetpackcrm.com/kb/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal = $zbs->modules->portal; do...
projects/plugins/crm/modules/portal/templates/single-invoice.php
<?php /** * Single Invoice Template * * The single invoice template * * @author ZeroBSCRM * @package Templates/Portal/Invoice * @see https://kb.jetpackcrm.com/ * @version 3.0 * */ if ( ! defined( 'ABSPATH' ) ) exit; // Don't allow direct access global $zbs; $portal = $zbs->modules->portal; $singl...
projects/plugins/crm/modules/woo-sync/jpcrm-woo-sync-init.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync Module initialisation * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; // Add to $zeroBSCRM_extensionsCompleteList global // (Legacy way of maintaining an extensions list) global $zbs, $zeroBSCRM_extensionsCompleteList; $zeroBSCRM_ex...
projects/plugins/crm/modules/woo-sync/includes/class-woo-sync-my-account-integration.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: WooCommerce My Account integration * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync My Account integration class */ class Woo_Sync_My_Account_Integration { /** * The single instan...
projects/plugins/crm/modules/woo-sync/includes/jpcrm-woo-sync-default-settings.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Default Settings * */ return array( // Once multi-site syncing we store a stack of these in here: 'sync_sites' => array(), // 0 = no, 1 = yes 'wccopyship' => '0', 'wctagcust' => '1', // tag contacts with item 'wctagtra...
projects/plugins/crm/modules/woo-sync/includes/class-woo-sync-woo-admin-integration.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Woo Admin class * Collects CRM additions to the WooCommerce backend UI */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync Woo Admin class */ class Woo_Sync_Woo_Admin_Integration { /** ...
projects/plugins/crm/modules/woo-sync/includes/class-woo-sync-segment-conditions.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Segment Conditions * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync Segment Conditions class */ class Woo_Sync_Segment_Conditions { /** * An array of our segment condition class in...
projects/plugins/crm/modules/woo-sync/includes/class-woo-sync.php
<?php // phpcs:disable /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; #} the WooCommerce API use Automattic\WooCommerce\Client; use Automattic\WooCommerce\HttpClient\HttpClientException; /** * WooSync cla...
projects/plugins/crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Background Sync Job (per run, site connection) * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; #} the WooCommerce API use Automattic\WooCommerce\Client; use Automattic\WooCommerce\HttpClient\HttpClie...
projects/plugins/crm/modules/woo-sync/includes/class-woo-sync-background-sync.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Background Sync * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync Background Sync class */ class Woo_Sync_Background_Sync { /** * Ready Mode, * No syncing will run unless this is...
projects/plugins/crm/modules/woo-sync/includes/jpcrm-woo-sync-contact-tabs.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Contact Tabs * Adds extra tabs to contact single view: vitals tab set */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync Contact Tabs class */ class Woo_Sync_Contact_Tabs { /** ...
projects/plugins/crm/modules/woo-sync/includes/segment-conditions/class-segment-condition-woo-order-count.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Segment Condition: Order Count * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync: Segment Condition: Order Count class */ class Segment_Condition_Woo_Order_Count extends zeroBSCRM_segmentCondition { public $key = ...
projects/plugins/crm/modules/woo-sync/includes/segment-conditions/class-segment-condition-woo-customer.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Segment Condition: Is WooCommerce Customer * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * WooSync: Segment Condition: Is WooCommerce Customer class */ class Segment_Condition_Woo_Customer extends zeroBSCRM_segmentCondition ...
projects/plugins/crm/modules/woo-sync/admin/settings/connections.page.ajax.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Admin: Connections page AJAX * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Language labels for JS */ function jpcrm_woosync_connections_js_language_labels( $language_array = array() ){ // add our labels // connections p...
projects/plugins/crm/modules/woo-sync/admin/settings/router.page.php
<?php /** * Jetpack CRM * https://jetpackcrm.com * * WooSync: Admin: Settings page */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: WooSync Settings */ function jpcrm_settings_page_html_woosync() { global $zbs; $page = $_GET['tab']; $current_tab ...
projects/plugins/crm/modules/woo-sync/admin/settings/main.page.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Admin: Settings page * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: WooSync Settings */ function jpcrm_settings_page_html_woosync_main() { global $zbs; $settings = $z...
projects/plugins/crm/modules/woo-sync/admin/settings/connection_edit.page.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Admin: Connection edit page * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: Connection edit page */ function jpcrm_settings_page_html_woosync_connection_edit() { global $zbs; $settin...
projects/plugins/crm/modules/woo-sync/admin/settings/connections.page.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Admin: Connections page * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: WooSync Connections */ function jpcrm_settings_page_html_woosync_connections() { global $zbs; $show_disconnect...
projects/plugins/crm/modules/woo-sync/admin/woo-sync-hub/main.page.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * WooSync: Admin: Hub page * */ // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * Page: WooSync Hub */ function jpcrm_woosync_render_hub_page() { global $zbs; // any messages to output $general_notices = array(); $error_notices = array(...
projects/plugins/crm/modules/woo-sync/admin/woo-sync-hub/main.page.ajax.php
<?php /** * Fired by AJAX on hub page (where still things to import, checks nonce and initiates import_orders) */ function jpcrm_woosync_ajax_import_orders( ){ global $zbs; // verify nonce check_ajax_referer( 'jpcrm_woosync_hubsync', 'sec' ); // init $return = $zbs->modules->woosync->background_sync->sync_or...
projects/plugins/crm/modules/automations/jpcrm-automations-init.php
<?php /** * Jetpack CRM * https://jetpackcrm.com * * Automation Module initialization * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack_CRM\Modules\Automations; use Automattic\Jetpack\CRM\Automation\Automation_Bootstrap; if ( ! defined( 'ZEROBSCRM_PATH' ) ) { exit; } if ( ! apply_filters( ...
projects/plugins/crm/modules/automations/admin/admin-page-init.php
<?php /** * Jetpack CRM * https://jetpackcrm.com * * Automation admin page initialization * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack_CRM\Modules\Automations; use Automattic\Jetpack\Assets; /** * The main initializing function. * * @since 6.2.0 * * @return void */ function initia...
projects/plugins/crm/modules/givewp/class-jpcrm-givewp.php
<?php /*! * Jetpack CRM * https://jetpackcrm.com * * GiveWP Module * */ namespace Automattic\JetpackCRM; // block direct access defined( 'ZEROBSCRM_PATH' ) || exit; /** * * GiveWP Connector for Jetpack CRM * */ class JPCRM_GiveWP { public function __construct() { if ( $this->check_dependencies() ) { $th...
projects/plugins/crm/modules/givewp/jpcrm-givewp-init.php
<?php if ( ! defined( 'ZEROBSCRM_PATH' ) ) exit; /** * This file registers the GiveWP module with core; it's pretty convoluted, * but that's due to a legacy init setup. The goal here is to have all * needed code self-contained in the module's folder. * * If the module is enabled, it is loaded with the jpcrm_load...
projects/plugins/crm/src/automation/class-base-condition.php
<?php /** * Base Condition implementation * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Base Condition Step. * * @since 6.2.0 * {@inheritDoc} */ abstract class Base_Condition extends Base_Step implements Condition { /** * The Automation logger. ...
projects/plugins/crm/src/automation/class-base-step.php
<?php /** * Base Step * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; use Automattic\Jetpack\CRM\Automation\Data_Types\Data_Type; /** * Base Step. * * @since 6.2.0 * {@inheritDoc} */ abstract class Base_Step implements Step { /** * Step attributes. *...
projects/plugins/crm/src/automation/class-automation-workflow.php
<?php /** * Defines the Jetpack CRM Automation workflow base. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; use Automattic\Jetpack\CRM\Automation\Data_Types\Data_Type; /** * Adds the Automation_Workflow class. * * @since 6.2.0 */ class Automation_Workflow...
projects/plugins/crm/src/automation/class-base-trigger.php
<?php /** * Base Trigger implementation * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Base Trigger implementation. * * @since 6.2.0 * {@inheritDoc} */ abstract class Base_Trigger implements Trigger { /** * The workflow to execute by this trigger...
projects/plugins/crm/src/automation/interface-action.php
<?php /** * Interface Action. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Interface Action. * * @since 6.2.0 */ interface Action extends Step { }
projects/plugins/crm/src/automation/class-data-type-exception.php
<?php /** * Jetpack CRM Automation data type exception. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation; /** * Adds a Data_Type specific exception. * * @since 6.2.0 */ class Data_Type_Exception extends \Exception { /** * Error code for when the class doesn't exist. * ...
projects/plugins/crm/src/automation/interface-step.php
<?php /** * Interface to define Step in an automation workflow. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Interface Step. * * @since 6.2.0 */ interface Step { /** * Get the next step. * * @since 6.2.0 * * @return int|string|null The n...
projects/plugins/crm/src/automation/class-attribute-definition.php
<?php /** * Attribute Definition * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Attribute Definition. * * An attribute represents how a step is configured. For example, a step that * sends an email to a contact may have an attribute that represents th...
projects/plugins/crm/src/automation/class-automation-engine.php
<?php /** * Defines Jetpack CRM Automation engine. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; use Automattic\Jetpack\CRM\Automation\Data_Transformers\Data_Transformer_Base; use Automattic\Jetpack\CRM\Automation\Data_Types\Data_Type; use Automattic\Jetpack\C...
projects/plugins/crm/src/automation/class-automation-logger.php
<?php /** * Defines the Jetpack CRM Automation logger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Adds the Automation_Logger class. * * @since 6.2.0 */ class Automation_Logger { /** * Instance singleton. * * @since 6.2.0 * @var Automatio...
projects/plugins/crm/src/automation/interface-condition.php
<?php /** * Interface Action. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Interface Condition. * * @since 6.2.0 */ interface Condition extends Step { }
projects/plugins/crm/src/automation/class-automation-bootstrap.php
<?php /** * Bootstrap the Jetpack CRM Automation engine. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Bootstrap the Jetpack CRM Automation engine. * * @since 6.2.0 */ final class Automation_Bootstrap { /** * The automation engine we want to boot...
projects/plugins/crm/src/automation/class-step-exception.php
<?php /** * Defines the Jetpack CRM Automation step exception. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Adds the Step_Exception class. * * @since 6.2.0 */ class Step_Exception extends Automation_Exception { /** * Step type not allowed code. ...
projects/plugins/crm/src/automation/class-base-action.php
<?php /** * Base Action implementation * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Base Action Step. * * @since 6.2.0 * {@inheritDoc} */ abstract class Base_Action extends Base_Step implements Action { }
projects/plugins/crm/src/automation/class-automation-exception.php
<?php /** * Defines Jetpack CRM Automation exceptions. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Adds the Automation_Exception class. * * @since 6.2.0 */ class Automation_Exception extends \Exception { /** * Step class not found code. * *...
projects/plugins/crm/src/automation/interface-trigger.php
<?php /** * Interface Trigger * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Interface Trigger. * * @since 6.2.0 */ interface Trigger { /** * Get the slug name of the trigger. * * @since 6.2.0 * * @return string The slug name of the trigge...
projects/plugins/crm/src/automation/class-data-transformer-exception.php
<?php /** * Jetpack CRM Automation data transformer exception. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation; /** * Adds a Data_Transformer specific exception. * * @since 6.2.0 */ class Data_Transformer_Exception extends \Exception { /** * Error code for when the class...
projects/plugins/crm/src/automation/class-workflow-exception.php
<?php /** * Defines the Jetpack CRM Automation workflow exception. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation; /** * Adds the Workflow_Exception class. * * @since 6.2.0 */ class Workflow_Exception extends \Exception { /** * Invalid Workflow error cod...
projects/plugins/crm/src/automation/data-transformers/class-data-transformer-entity-to-tag-list.php
<?php /** * CRM Entity to CRM Tag List Transformer class. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation\Data_Transformers; use Automattic\Jetpack\CRM\Automation\Data_Transformer_Exception; use Automattic\Jetpack\CRM\Automation\Data_Types\Data_Type; use Automattic\Jetpack\CRM\A...
projects/plugins/crm/src/automation/data-transformers/class-data-transformer-invoice-to-contact.php
<?php /** * CRM Invoice to CRM Contact Transformer class. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation\Data_Transformers; use Automattic\Jetpack\CRM\Automation\Data_Transformer_Exception; use Automattic\Jetpack\CRM\Automation\Data_Types\Contact_Data; use Automattic\Jetpack\CR...
projects/plugins/crm/src/automation/data-transformers/class-data-transformer-base.php
<?php /** * Base Data Transformer class. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation\Data_Transformers; use Automattic\Jetpack\CRM\Automation\Data_Transformer_Exception; use Automattic\Jetpack\CRM\Automation\Data_Type_Exception; use Automattic\Jetpack\CRM\Automation\Data_Typ...
projects/plugins/crm/src/automation/data-types/interface-entity-data.php
<?php /** * Entity Data Interface. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; /** * Entity Data Interface. * * This interface is to be able to identify the JPCRM entities Data_Type classes. * * @since 6.2.0 */ interface Entity_Data { /** ...
projects/plugins/crm/src/automation/data-types/class-tag-list-data.php
<?php /** * Tag_List Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Automation\Data_Type_Exception; /** * Tag_List Data Type. * * @since 6.2.0 */ class Tag_List_Data extends Data_Type_Base { /** * Valida...
projects/plugins/crm/src/automation/data-types/class-task-data.php
<?php /** * Event Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Task; /** * Event Data Type. * * @since 6.2.0 */ class Task_Data extends Data_Type_Base implements Entity_Data { /** * Validate t...
projects/plugins/crm/src/automation/data-types/interface-data-type.php
<?php /** * Data Type Interface class. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; /** * Data Type Interface. * * @since 6.2.0 */ interface Data_Type { /** * Validate the data. * * This method is meant to validate if the data has the expected inherita...
projects/plugins/crm/src/automation/data-types/class-tag-data.php
<?php /** * Tag Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Tag; /** * Tag Data Type. * * @since 6.2.0 */ class Tag_Data extends Data_Type_Base { /** * Validate the data. * * This method ...
projects/plugins/crm/src/automation/data-types/class-contact-data.php
<?php /** * Contact Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Contact; /** * Contact Data Type. * * @since 6.2.0 */ class Contact_Data extends Data_Type_Base implements Entity_Data { /** * ...
projects/plugins/crm/src/automation/data-types/class-transaction-data.php
<?php /** * Transaction Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Transaction; /** * Transaction Data Type. * * @since 6.2.0 */ class Transaction_Data extends Data_Type_Base implements Entity_D...
projects/plugins/crm/src/automation/data-types/class-company-data.php
<?php /** * Company Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Company; /** * Company Data Type. * * @since 6.2.0 */ class Company_Data extends Data_Type_Base implements Entity_Data { /** * ...
projects/plugins/crm/src/automation/data-types/class-invoice-data.php
<?php /** * Invoice Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Invoice; /** * Invoice Data Type. * * @since 6.2.0 */ class Invoice_Data extends Data_Type_Base implements Entity_Data { /** * ...
projects/plugins/crm/src/automation/data-types/class-data-type-base.php
<?php /** * Base Data Type class. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Automation\Data_Type_Exception; /** * Abstract Data Type base class. * * @since 6.2.0 */ abstract class Data_Type_Base implements Data_Ty...
projects/plugins/crm/src/automation/data-types/class-quote-data.php
<?php /** * Quote Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; use Automattic\Jetpack\CRM\Entities\Quote; /** * Quote Data Type. * * @since 6.2.0 */ class Quote_Data extends Data_Type_Base implements Entity_Data { /** * Validate...
projects/plugins/crm/src/automation/data-types/class-wp-user-data.php
<?php /** * WP_User Data Type. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Data_Types; /** * WP_User Data Type. * * @since 6.2.0 */ class WP_User_Data extends Data_Type_Base { /** * Validate the data. * * This method is meant to validate if the da...
projects/plugins/crm/src/automation/commons/triggers/tasks/class-task-deleted.php
<?php /** * Jetpack CRM Automation Task_Deleted trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Task_Data; /** * Adds the Task_Deleted class....
projects/plugins/crm/src/automation/commons/triggers/tasks/class-task-updated.php
<?php /** * Jetpack CRM Automation Task_Updated trigger. * * @package automattic/jetpack-crm */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Task_Data; /** * Adds the Task_Updated class. * * @since 6....
projects/plugins/crm/src/automation/commons/triggers/tasks/class-task-created.php
<?php /** * Jetpack CRM Automation Task_Created trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Task_Data; /** * Adds the Task_Created class....
projects/plugins/crm/src/automation/commons/triggers/invoices/class-invoice-updated.php
<?php /** * Jetpack CRM Automation Invoice_Updated trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Invoice_Data; /** * Adds the Invoice_Updat...
projects/plugins/crm/src/automation/commons/triggers/invoices/class-invoice-created.php
<?php /** * Jetpack CRM Automation Invoice_Created trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Invoice_Data; /** * Adds the Invoice_Creat...
projects/plugins/crm/src/automation/commons/triggers/invoices/class-invoice-status-updated.php
<?php /** * Jetpack CRM Automation Invoice_Status_Updated trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Invoice_Data; /** * Adds the Invoic...
projects/plugins/crm/src/automation/commons/triggers/invoices/class-invoice-deleted.php
<?php /** * Jetpack CRM Automation Invoice_Deleted trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Invoice_Data; /** * Adds the Invoice_Delet...
projects/plugins/crm/src/automation/commons/triggers/wordpress/class-wp-user-created.php
<?php /** * Jetpack CRM Automation WP_User_Created trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Automation_Workflow; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automat...
projects/plugins/crm/src/automation/commons/triggers/quotes/class-quote-created.php
<?php /** * Jetpack CRM Automation Quote_Created trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Quote_Data; /** * Adds the Quote_Created cla...
projects/plugins/crm/src/automation/commons/triggers/quotes/class-quote-updated.php
<?php /** * Jetpack CRM Automation Quote_Updated trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Quote_Data; /** * Adds the Quote_Updated cla...
projects/plugins/crm/src/automation/commons/triggers/quotes/class-quote-status-updated.php
<?php /** * Jetpack CRM Automation Quote_Status_Updated trigger. * * @package automattic/jetpack-crm * @since 6.2.0 */ namespace Automattic\Jetpack\CRM\Automation\Triggers; use Automattic\Jetpack\CRM\Automation\Base_Trigger; use Automattic\Jetpack\CRM\Automation\Data_Types\Quote_Data; /** * Adds the Quote_Stat...