/** * Display the captcha * * @param Zend_View_Interface $view * @param mixed $element * @return string */ public function render(\Zend\View\ViewEngine $view = null, $element = null) { return '<pre>' . $this->_figlet->render($this->getWord()) . "</pre>\n"; }
public function testEmptyString() { $figlet = new Figlet\Figlet(); $this->assertEquals('', $figlet->render('')); }
/** * Display the captcha * * @param Renderer $view * @param mixed $element * @return string */ public function render(Renderer $view = null, $element = null) { return '<pre>' . $this->_figlet->render($this->getWord()) . "</pre>\n"; }
public function usageAction() { // get run script name $script = basename($this->request->getScriptName()); if (ConsoleStatic::isWindows()) { $script .= '.bat'; } else { $script = './' . $script; } $figletText = new Figlet(); $figletText->setFont('/ginosi/backoffice/module/Console/data/fonts/doom.flf'); $asciiGinosi = $figletText->render(' GINOSI'); return <<<USAGE [0;37m----------------------------------------------------------[0m {$asciiGinosi}[3;37m ✡ Ginosi Backoffice Console (GBC) ✡ [0m [0;37m----------------------------------------------------------[0m [0;37mUsage:[0m [0;36mginosole[0m [0;35mcurrency show[0m [0;36mginosole[0m [0;35mreservation-email send-ki --id=4651 -v[0m [0;36mginosole[0m [0;35m[ --usage | --help | -h ][0m [0;37mParameters:[0m [1;33mcurrency show[0m [2;33m- show all currencies[0m [1;33mcurrency update[0m [2;33m- update currencies[0m [1;33mcurrency check[0m [2;33m- currency been updated in the last 30 hours? (--nosend)[0m [1;33mcurrency update-currency-vault[0m [2;33m- grab current currency values and save[0m [1;33mreservation-email check-review[0m [2;33m- show review for sent (--id=BID|otherwise all)[0m [1;33mreservation-email send-review[0m [2;33m- send the necessary reviews (--id=BID|otherwise all)[0m [1;33mreservation-email check-ki[0m [2;33m- show key instructions for sent (--id=BID|otherwise all)[0m [1;33mreservation-email send-ki[0m [2;33m- send the necessary key instructions (--id=BID|otherwise all) (-bo)[0m [1;33mreservation-email check-confirmation[0m [2;33m- show info about booking (--id=BID|otherwise all)[0m [1;33mreservation-email send-guest[0m [2;33m- send reservation mail to Customer --id=BID (-bo)[0m [1;33mreservation-email send-ginosi[0m [2;33m- send reservation mail to Ginosi --id=BID (--ccp=yes) (-bo)[0m [1;33mreservation-email send-overbooking[0m [2;33m- check if reservation is overbooking and send email with info --id=BID (--ccp=yes) (-bo)[0m [1;33mreservation-email send-ccca[0m [2;33m- send CCCA link to a customer [--id=resId] [--ccca_id=CCCAID] [--email=customer email][0m [1;33mreservation-email show-modification[0m [2;33m- show modification booking --id=BID[0m [1;33mreservation-email send-update-payment-details-guest[0m [2;33m- send link for input new CC info to Customer --id=BID[0m [1;33mreservation-email send-payment-details-updated-ginosi[0m [2;33m- send new CC confirmation mail to Ginosi --id=BID --ccp=yes[0m [1;33mreservation-email send-modification-cancel[0m [2;33m- send cancellation mail to Ginosi and/or Customer if(!over) --id=BID --ginosi --booker[0m [1;33mreservation-email send-modification-ginosi[0m [2;33m- send modification mail to Ginosi --id=BID --shifted[0m [1;33mreservation-email send-receipt[0m [2;33m- sends charges receipt to the customer[0m [1;33missues show[0m [2;33m- show all detected issues (--id=BID|otherwise all)[0m [1;33missues detect[0m [2;33m- detect issue for selected thicket --id=BID[0m [1;33missues force-resolve[0m [2;33m- remove all issues for selected thicket --id=BID[0m [1;33mchm pullreservation[0m [2;33m- get new reservations via Channel Manager[0m [1;33mavailability update-monthly[0m [2;33m- update availability monthly[0m [1;33mavailability repair[0m [2;33m- update availability by date range and/or rate_id [--date-from=DATE_FROM] [--date-to=DATE_TO] [--rate-id=RATE_ID][0m [1;33mavailability update-monthly-apartel[0m [2;33m- update availability monthly for apartel[0m [1;33mbooking firstcharge[0m [2;33m- executes first charging for the reservations that are not in flexible period and do not have charge yet[0m [1;33mbooking clear-links[0m [2;33m- clear expired edit links[0m [1;33mbooking check-reservation-balances[0m [2;33m- Calculate reservation balances and check whether the saved one is correct [0m [1;33muser send-login-details[0m [2;33m- generate new password and send details to user email[0m [1;33muser calculate-vacation-days[0m [2;33m- calculate vacation days for active employees[0m [1;33muser show[0m [2;33m- show user info [--id=USER ID][0m [1;33muser update-schedule-inventory[0m [2;33m- update schedule inventory for active employees[0m [1;33mcrawler update[0m [2;33m- update ota connection status[0m [1;33mcrawler check[0m [2;33m- check ota connection status and update only last edit date [--product=apartment|apartel] [--identity=ID,ID] [--ota=ID,ID][0m [1;33mapartment check-performance[0m [2;33m- checks all selling apartments performance for last month, and if result is negative, add notification for those who have the appropriate role[0m [1;33mapartment documents-after-sixty-days-expiring [0m [2;33m- loops through apartment documents and sends notification to group managers if document expiration date == 60 days[0m [1;33mapartment correct-apartment-reviews [0m [2;33m- loops through all active apartments and corrects their average review score[0m [1;33mbuilding check-performance[0m [2;33m- checks all buildings' selling apartments performance for last month, and if result is negative add notification for those who have the appropriate role[0m [1;33mcontact-us send[0m [2;33m- send email from website contact us page [--name=VisitorName] [--email=VisitorEmail] [--remarks=RemarksAsString][0m [1;33mdb safe-backup[0m [2;33m- create safe database backup[0m [1;33mtools[0m [2;33m- more tools (help included)[0m [1;33marrivals send-arrivals-mail[0m [2;33m- Send email to concierge for new arrivals[0m [1;33mtask update-reservation-cleaning-tasks-for-2-days[0m [2;33m- update cleaning tasks and set housekeeper entry and next guest keys[0m [1;33mparking extend-inventory[0m [2;33m- Extend parking inventory[0m [1;33memail send-applicant-rejections[0m [2;33m- Send applicant rejection emails[0m [1;33mtools report-unused-files[0m [2;33m- Report all unused files on hard disk & lost files in database || type [ginosole tools] to see all available parameters[0m [1;33mtools optimize-tables[0m [2;33m- Run optimize tables statement for all database tables [0m [1;33minventory-synchronization execute-inventory[0m [2;33m- Apartment inventory synchronization [start|restart][0m [1;33mapi-request delete-expired-request[0m [2;33m- Delete expired API request[0m [1;33mphpunit [--app=name][0m [2;33m- Run PHPUnit for Applications, available [website | backoffice | api][0m [1;33m--id[0m [2;33m- Booking ID (not reservation number)[0m [1;33m--ccp[0m [2;33m- Credit Card Provided[0m [1;33m-bo[0m [2;33m- Flag 'from Backoffice' (force mode)[0m [1;33m--verbose/-v[0m [2;33m- Verbose mode[0m [1;33m--usage/--help[0m [2;33m- Display this help[0m [4;33mwaiting for more supplements...[0m USAGE; }
/** * {@inheritdoc} */ public function getConsoleBanner(AdapterInterface $console) { if (static::$consoleBannerEnabled) { $figlet = new Figlet(['font' => __DIR__ . '/assets/font/colossal.flf']); $figlet->setOutputWidth($console->getWidth()); $figlet->setJustification(Figlet::JUSTIFICATION_CENTER); return PHP_EOL . $figlet->render('Sphinx Search Tool'); } else { return ''; } }
/** * Display the captcha * * @param Zend_View_Interface $view * @param mixed $element * @return string */ public function render(\Zend_View_Interface $view = null, $element = null) { return '<pre>' . $this->_figlet->render($this->getWord()) . "</pre>\n"; }