/** * WP_MatchesMapRegex helper class * * @package WordPress * @since 4.7.0 */ /** * Helper class to remove the need to use eval to replace $matches[] in query strings. * * @since 2.9.0 */ class WP_MatchesMapRegex { /** * store for matches * * @access private * @var array */ private $_matches; /** * store for mapping result * * @access public * @var string */ public $output; /** * subject to perform mapping on (query string containing $matches[] references * * @access private * @var string */ private $_subject; /** * regexp pattern to match $matches[] references * * @var string */ public $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; // magic number /** * constructor * * @param string $subject subject if regex * @param array $matches data to use in map */ public function __construct($subject, $matches) { $this->_subject = $subject; $this->_matches = $matches; $this->output = $this->_map(); } /** * Substitute substring matches in subject. * * static helper function to ease use * * @static * @access public * * @param string $subject subject * @param array $matches data used for substitution * @return string */ public static function apply($subject, $matches) { $oSelf = new WP_MatchesMapRegex($subject, $matches); return $oSelf->output; } /** * do the actual mapping * * @access private * @return string */ private function _map() { $callback = array($this, 'callback'); return preg_replace_callback($this->_pattern, $callback, $this->_subject); } /** * preg_replace_callback hook * * @access public * @param array $matches preg_replace regexp matches * @return string */ public function callback($matches) { $index = intval(substr($matches[0], 9, -1)); return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : '' ); } } jsn – RotorWay

Forfatter: jsn

Sun N’ Fun 2017 Newsletter

Sun N’ Fun 2017 Newsletter View this email in your browser                                                       RotorWay will be participating this year at Sun N’ Fun with help from Mark Peterson of Airmark Helicopters. Mark will be representing RotorWay Helicopters and will be demonstrating the A600 Turbo. Mark will be joined by Chris Tronaas and his Oshkosh Grand…

Happy Thanksgiving,Turbo Data

November Newsletter 2016 View this email in your browser   Happy Thanksgiving!   Altitude Testing A600 Turbo High Elevation Flight Test Location: Love Field, Prescott AZ Field Elevation: 5045ft Temperature: 12C Hg:30.38in Relative humidity: 47% Density Altitude: 5434ft Weight: 2 pilots, full fuel – 1518lbs HIGE Performance Data, 3 foot hover:  Throttle position – 43%, Manifold pressure – 30.64 HOGE…

News

A600 TURBO June 15, 2016/ New for 2016 RotorWay Introduces the A600 TURBO! Now the A600 Helicopter comes in a TURBO version! Be among the 1st to see and feel the difference this summer at Oshkosh 2016! The TURBO Option will be available on all new A600 kits beginning in July. Rotorway will be offering the all new A600 TURBO…