private function usage()
    {
        if (empty($this->params)) {
            $usageHelper = \common_report_Report::createInfo('USAGE: What you could do here:');
            $usageHelper->add(\common_report_Report::createSuccess('Please, Note that sections must not intersect otherwise it will work according to priority'));

            $countDeliveriesForUsers = \common_report_Report::createInfo('1. Count how many deliveries has each of the user');
            $countDeliveriesForUsers->add(\common_report_Report::createInfo('--count-deliveries-by-user'));
            $countDeliveriesForUsers->add(\common_report_Report::createInfo('--open-out   `show all deliveries and executions id`'));
            $usageHelper->add($countDeliveriesForUsers);

            $openDeliveriesForUser = \common_report_Report::createInfo('2. Detailed report about deliveries for user');
            $openDeliveriesForUser->add(\common_report_Report::createInfo('--detailed-report'));
            $openDeliveriesForUser->add(\common_report_Report::createInfo('--detailed-user=[userId]'));
            $openDeliveriesForUser->add(\common_report_Report::createInfo('--open-out   `show all deliveries and executions id`'));
            $usageHelper->add($openDeliveriesForUser);

            $cleaner = \common_report_Report::createInfo('2. Clean test data that you want (The greater the force, the greater the responsibility)');
            $cleaner->add(\common_report_Report::createFailure('Note: everything will be deleted even user'));
            $cleaner->add(\common_report_Report::createInfo('--run-cleaner'));
            $cleaner->add(\common_report_Report::createInfo('--clean-user=[userId] `will be deleted user, executions and states`'));
            $cleaner->add(\common_report_Report::createInfo('--clean-user-with-his-deliveries `will be deleted user, executions, states, DELIVERIES and RESULTS`'));
            $cleaner->add(\common_report_Report::createInfo('--clean-delivery=[deliveryId] `not required. If provided, then will be deleted only that delivery and results`'));
            $usageHelper->add($cleaner);

            $executionsCleaner = \common_report_Report::createInfo('3. Delete only executions and test results (The greater the force, the greater the responsibility)');
            $executionsCleaner->add(\common_report_Report::createFailure('Note: will be deleted results, executions and services states'));
            $executionsCleaner->add(\common_report_Report::createInfo('--run-executions-cleaner'));
            $executionsCleaner->add(\common_report_Report::createInfo('--clean-user=[userId] `will be deleted executions, results and states`'));
            $executionsCleaner->add(\common_report_Report::createInfo('--clean-users-whose-label-begin-with=[string] `min length 3 symbols. Will be deleted executions, results and states only for the users whose labels begin with specified string.`'));
            $usageHelper->add($executionsCleaner);

            $this->report->add($usageHelper);
        }
    }
private function usage()
    {
        if (empty($this->params)) {
            $usageHelper = \common_report_Report::createInfo('USAGE: What you could do here:');
            $usageHelper->add(\common_report_Report::createSuccess('Please, Note that sections must not intersect otherwise it will work according to priority'));

            $countDeliveriesForUsers = \common_report_Report::createInfo('1. Count how many deliveries has each of the user');
            $countDeliveriesForUsers->add(\common_report_Report::createInfo('--count-deliveries-by-user'));
            $countDeliveriesForUsers->add(\common_report_Report::createInfo('--open-out   `show all deliveries and executions id`'));
            $usageHelper->add($countDeliveriesForUsers);

            $openDeliveriesForUser = \common_report_Report::createInfo('2. Detailed report about deliveries for user');
            $openDeliveriesForUser->add(\common_report_Report::createInfo('--detailed-report'));
            $openDeliveriesForUser->add(\common_report_Report::createInfo('--detailed-user=[userId]'));
            $openDeliveriesForUser->add(\common_report_Report::createInfo('--open-out   `show all deliveries and executions id`'));
            $usageHelper->add($openDeliveriesForUser);

            $cleaner = \common_report_Report::createInfo('2. Clean test data that you want (The greater the force, the greater the responsibility)');
            $cleaner->add(\common_report_Report::createFailure('Note: everything will be deleted even user'));
            $cleaner->add(\common_report_Report::createInfo('--run-cleaner'));
            $cleaner->add(\common_report_Report::createInfo('--clean-user=[userId] `will be deleted user, executions and states`'));
            $cleaner->add(\common_report_Report::createInfo('--clean-user-with-his-deliveries `will be deleted user, executions, states, DELIVERIES and RESULTS`'));
            $cleaner->add(\common_report_Report::createInfo('--clean-delivery=[deliveryId] `not required. If provided, then will be deleted only that delivery and results`'));
            $usageHelper->add($cleaner);

            $executionsCleaner = \common_report_Report::createInfo('3. Delete only executions and test results (The greater the force, the greater the responsibility)');
            $executionsCleaner->add(\common_report_Report::createFailure('Note: will be deleted results, executions and services states'));
            $executionsCleaner->add(\common_report_Report::createInfo('--run-executions-cleaner'));
            $executionsCleaner->add(\common_report_Report::createInfo('--clean-user=[userId] `will be deleted executions, results and states`'));
            $executionsCleaner->add(\common_report_Report::createInfo('--clean-users-whose-label-begin-with=[string] `min length 3 symbols. Will be deleted executions, results and states only for the users whose labels begin with specified string.`'));
            $usageHelper->add($executionsCleaner);

            $this->report->add($usageHelper);
        }
    }
private function usage ( ) { if ( empty ( $ this -> params ) ) { $ usageHelper = \ common_report_Report :: createInfo ( 'USAGE: What you could do here:' ) ; $ usageHelper -> add ( \ common_report_Report :: createSuccess ( 'Please, Note that sections must not intersect otherwise it will work according to priority' ) ) ; $ countDeliveriesForUsers = \ common_report_Report :: createInfo ( '1. Count how many deliveries has each of the user' ) ; $ countDeliveriesForUsers -> add ( \ common_report_Report :: createInfo ( '--count-deliveries-by-user' ) ) ; $ countDeliveriesForUsers -> add ( \ common_report_Report :: createInfo ( '--open-out   `show all deliveries and executions id`' ) ) ; $ usageHelper -> add ( $ countDeliveriesForUsers ) ; $ openDeliveriesForUser = \ common_report_Report :: createInfo ( '2. Detailed report about deliveries for user' ) ; $ openDeliveriesForUser -> add ( \ common_report_Report :: createInfo ( '--detailed-report' ) ) ; $ openDeliveriesForUser -> add ( \ common_report_Report :: createInfo ( '--detailed-user=[userId]' ) ) ; $ openDeliveriesForUser -> add ( \ common_report_Report :: createInfo ( '--open-out   `show all deliveries and executions id`' ) ) ; $ usageHelper -> add ( $ openDeliveriesForUser ) ; $ cleaner = \ common_report_Report :: createInfo ( '2. Clean test data that you want (The greater the force, the greater the responsibility)' ) ; $ cleaner -> add ( \ common_report_Report :: createFailure ( 'Note: everything will be deleted even user' ) ) ; $ cleaner -> add ( \ common_report_Report :: createInfo ( '--run-cleaner' ) ) ; $ cleaner -> add ( \ common_report_Report :: createInfo ( '--clean-user=[userId] `will be deleted user, executions and states`' ) ) ; $ cleaner -> add ( \ common_report_Report :: createInfo ( '--clean-user-with-his-deliveries `will be deleted user, executions, states, DELIVERIES and RESULTS`' ) ) ; $ cleaner -> add ( \ common_report_Report :: createInfo ( '--clean-delivery=[deliveryId] `not required. If provided, then will be deleted only that delivery and results`' ) ) ; $ usageHelper -> add ( $ cleaner ) ; $ executionsCleaner = \ common_report_Report :: createInfo ( '3. Delete only executions and test results (The greater the force, the greater the responsibility)' ) ; $ executionsCleaner -> add ( \ common_report_Report :: createFailure ( 'Note: will be deleted results, executions and services states' ) ) ; $ executionsCleaner -> add ( \ common_report_Report :: createInfo ( '--run-executions-cleaner' ) ) ; $ executionsCleaner -> add ( \ common_report_Report :: createInfo ( '--clean-user=[userId] `will be deleted executions, results and states`' ) ) ; $ executionsCleaner -> add ( \ common_report_Report :: createInfo ( '--clean-users-whose-label-begin-with=[string] `min length 3 symbols. Will be deleted executions, results and states only for the users whose labels begin with specified string.`' ) ) ; $ usageHelper -> add ( $ executionsCleaner ) ; $ this -> report -> add ( $ usageHelper ) ; } }
how it works
how it works