class Rs
Functions to hack database query result sets Source code (22 results)/sprout/Helpers/DocImport/DocImportDOCX.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: namespace Sprout\Helpers\DocImport; Line 20: use Sprout\Helpers\Enc; Line 21: use Sprout\Helpers\File; Line 53: $this->numbersFromStyles(); Line 58: $body = $doc->firstChild->getElementsByTagName('body'); Line 67: $out .= '<?xml version="1.0" encoding="UTF-8" ?>' . PHP_EOL; Line 74: $out .= '<res name="' . htmlspecialchars($name) . '">' . base64_encode($data) . '</res>' . PHP_EOL; Line 322: $currSubscript = false; Line 323: $currSuperscript = false; Line 336: $newSuperscript = false; Line 345: case 'w:rStyle': Line 364: } else if ($node->getAttribute('w:val') == 'superscript') { Line 365: $newSuperscript = true; Line 382: if ($currSubscript and !$newSubscript) $needToClose[] = 'sub'; Line 383: if ($currSuperscript and !$newSuperscript) $needToClose[] = 'sup'; Line 403: if (!$currSubscript and $newSubscript) { $out .= '<sub>'; $tagStack[] = 'sub'; } Line 404: if (!$currSuperscript and $newSuperscript) { $out .= '<sup>'; $tagStack[] = 'sup'; } Line 409: $currSubscript = $newSubscript; Line 410: $currSuperscript = $newSuperscript; Line 417: $out .= Enc::xml($this->symbolSanitizeString($node->firstChild->data)); Line 419: $out .= Enc::xml($node->firstChild->data); Line 450: // Remove multiple BRs in a row Line 453: // Move BRs outside B and I tags Line 457: // Remove trailing and leading BRs Line 593: * Sometimes a numbering format refers to a style, the style itself contains the actual number format Line 598: private function numbersFromStyles() Line 816: $css = $this->parseCss($css); Line 837: * Convert 'Symbol' font Private-Use-Area characters into real characters Line 853: * Regular expression callback for Symbol font conversion Line 867: * Parse given css Line 872: private function parseCss($css) Line 903: * Mapping between PUA for Symbol font to regular characters
/sprout/Helpers/DocImport/DocImportDOCX.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: namespace Sprout\Helpers\DocImport; Line 20: use Sprout\Helpers\Enc; Line 21: use Sprout\Helpers\File; Line 53: $this->numbersFromStyles(); Line 58: $body = $doc->firstChild->getElementsByTagName('body'); Line 67: $out .= '<?xml version="1.0" encoding="UTF-8" ?>' . PHP_EOL; Line 74: $out .= '<res name="' . htmlspecialchars($name) . '">' . base64_encode($data) . '</res>' . PHP_EOL; Line 322: $currSubscript = false; Line 323: $currSuperscript = false; Line 336: $newSuperscript = false; Line 345: case 'w:rStyle': Line 364: } else if ($node->getAttribute('w:val') == 'superscript') { Line 365: $newSuperscript = true; Line 382: if ($currSubscript and !$newSubscript) $needToClose[] = 'sub'; Line 383: if ($currSuperscript and !$newSuperscript) $needToClose[] = 'sup'; Line 403: if (!$currSubscript and $newSubscript) { $out .= '<sub>'; $tagStack[] = 'sub'; } Line 404: if (!$currSuperscript and $newSuperscript) { $out .= '<sup>'; $tagStack[] = 'sup'; } Line 409: $currSubscript = $newSubscript; Line 410: $currSuperscript = $newSuperscript; Line 417: $out .= Enc::xml($this->symbolSanitizeString($node->firstChild->data)); Line 419: $out .= Enc::xml($node->firstChild->data); Line 450: // Remove multiple BRs in a row Line 453: // Move BRs outside B and I tags Line 457: // Remove trailing and leading BRs Line 593: * Sometimes a numbering format refers to a style, the style itself contains the actual number format Line 598: private function numbersFromStyles() Line 816: $css = $this->parseCss($css); Line 837: * Convert 'Symbol' font Private-Use-Area characters into real characters Line 853: * Regular expression callback for Symbol font conversion Line 867: * Parse given css Line 872: private function parseCss($css) Line 903: * Mapping between PUA for Symbol font to regular characters
/sprout/Helpers/Locales/LocaleInfo.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: namespace Sprout\Helpers\Locales; Line 21: use Sprout\Helpers\CountryConstants; Line 22: use Sprout\Helpers\Form; Line 23: use Sprout\Helpers\Validator; Line 73: * If no LocaleInfo can be found, a generic version is used. Line 94: * Return the raw parameters of this locale Line 96: public function getParameters() Line 255: * Returns a string which is a formatted version of the address specified using the provided data. Line 256: * The string contains newlines which will need converting to BRs for HTML output Line 264: if ($data instanceof stdClass) $data = get_object_vars($data); Line 331: * Formats numbers, like the interal {@see number_format} function
/sprout/Helpers/Locales/LocaleInfo.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: namespace Sprout\Helpers\Locales; Line 21: use Sprout\Helpers\CountryConstants; Line 22: use Sprout\Helpers\Form; Line 23: use Sprout\Helpers\Validator; Line 73: * If no LocaleInfo can be found, a generic version is used. Line 94: * Return the raw parameters of this locale Line 96: public function getParameters() Line 255: * Returns a string which is a formatted version of the address specified using the provided data. Line 256: * The string contains newlines which will need converting to BRs for HTML output Line 264: if ($data instanceof stdClass) $data = get_object_vars($data); Line 331: * Formats numbers, like the interal {@see number_format} function
/sprout/Helpers/phpqrcode/qrencode.php Highlighted file source
Line 16: * version 3 of the License, or any later version. Line 28: class QRrsblock { Line 34: public function __construct($dl, $data, $el, &$ecc, QRrsItem $rs) Line 36: $rs->encode_rs_char($data, $ecc); Line 48: public $version; Line 52: public $rsblocks = array(); //of RSblock Line 68: QRspec::getEccSpec($input->getVersion(), $input->getErrorCorrectionLevel(), $spec); Line 70: $this->version = $input->getVersion(); Line 71: $this->b1 = QRspec::rsBlockNum1($spec); Line 72: $this->dataLength = QRspec::rsDataLength($spec); Line 73: $this->eccLength = QRspec::rsEccLength($spec); Line 75: $this->blocks = QRspec::rsBlockNum($spec); Line 89: $dl = QRspec::rsDataCodes1($spec); Line 90: $el = QRspec::rsEccCodes1($spec); Line 91: $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); Line 97: for($i=0; $i<QRspec::rsBlockNum1($spec); $i++) { Line 99: $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs); Line 107: if(QRspec::rsBlockNum2($spec) == 0) Line 110: $dl = QRspec::rsDataCodes2($spec); Line 111: $el = QRspec::rsEccCodes2($spec); Line 112: $rs = QRrs::init_rs(8, 0x11d, 0, 1, $el, 255 - $dl - $el); Line 114: if($rs == NULL) return -1; Line 116: for($i=0; $i<QRspec::rsBlockNum2($spec); $i++) { Line 118: $this->rsblocks[$blockNo] = new QRrsblock($dl, array_slice($this->datacode, $dataPos), $el, $ecc, $rs); Line 137: if($col >= $this->rsblocks[0]->dataLength) { Line 140: $ret = $this->rsblocks[$row]->data[$col]; Line 144: $ret = $this->rsblocks[$row]->ecc[$col]; Line 158: public $version; Line 165: if($input->getVersion() < 0 || $input->getVersion() > QRSPEC_VERSION_MAX) { Line 166: throw new Exception('wrong version'); Line 176: $version = $raw->version; Line 177: $width = QRspec::getWidth($version); Line 178: $frame = QRspec::newFrame($version); Line 201: $j = QRspec::getRemainder($version); Line 230: $this->version = $version; Line 244: public function encodeString8bit($string, $version, $level) Line 251: $input = new QRinput($version, $level); Line 263: public function encodeString($string, $version, $level, $hint, $casesensitive) Line 271: $input = new QRinput($version, $level); Line 274: $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive); Line 415: public $version = 0; Line 470: $code->encodeString8bit($intext, $this->version, $this->level); Line 472: $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive); Line 484: $code->encodeString8bit($intext, $this->version, $this->level); Line 486: $code->encodeString($intext, $this->version, $this->level, $this->hint, $this->casesensitive);
/sprout/Helpers/phpqrcode/qrinput.php Highlighted file source
Line 16: * version 3 of the License, or any later version.
Line 57: public function encodeModeNum($version)
Line 66: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_NUM, $version), $this->size);
Line 93: public function encodeModeAn($version)
Line 100: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_AN, $version), $this->size);
Line 123: public function encodeMode8($version)
Line 129: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_8, $version), $this->size);
Line 144: public function encodeModeKanji($version)
Line 151: $bs->appendNum(QRspec::lengthIndicator(QR_MODE_KANJI, $version), (int)($this->size / 2));
Line 195: public function estimateBitStreamSizeOfEntry($version)
Line 199: if($version == 0)
Line 200: $version = 1;
Line 212: $l = QRspec::lengthIndicator($this->mode, $version);
Line 222: public function encodeBitStream($version)
Line 227: $words = QRspec::maximumWords($this->mode, $version);
Line 234: $st1->encodeBitStream($version);
Line 235: $st2->encodeBitStream($version);
Line 249: case QR_MODE_NUM: $ret = $this->encodeModeNum($version); break;
Line 250: case QR_MODE_AN: $ret = $this->encodeModeAn($version); break;
Line 251: case QR_MODE_8: $ret = $this->encodeMode8($version); break;
Line 252: case QR_MODE_KANJI: $ret = $this->encodeModeKanji($version);break;
Line 277: private $version;
Line 281: public function __construct($version = 0, $level = QR_ECLEVEL_L)
Line 283: if ($version < 0 || $version > QRSPEC_VERSION_MAX || $level > QR_ECLEVEL_H) {
Line 284: throw new Exception('Invalid version no');
Line 287: $this->version = $version;
Line 292: public function getVersion()
Line 294: return $this->version;
Line 298: public function setVersion($version)
Line 300: if($version < 0 || $version > QRSPEC_VERSION_MAX) {
Line 301: throw new Exception('Invalid version no');
Line 305: $this->version = $version;
Line 516: public function estimateBitStreamSize($version)
Line 521: $bits += $item->estimateBitStreamSizeOfEntry($version);
Line 528: public function estimateVersion()
Line 530: $version = 0;
Line 533: $prev = $version;
Line 535: $version = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
Line 536: if ($version < 0) {
Line 539: } while ($version > $prev);
Line 541: return $version;
Line 545: public static function lengthOfCode($mode, $version, $bits)
Line 547: $payload = $bits - 4 - QRspec::lengthIndicator($mode, $version);
Line 580: $maxsize = QRspec::maximumWords($mode, $version);
Line 593: $bits = $item->encodeBitStream($this->version);
Line 607: $ver = $this->estimateVersion();
Line 608: if($ver > $this->getVersion()) {
Line 609: $this->setVersion($ver);
Line 618: $ver = QRspec::getMinimumVersion((int)(($bits + 7) / 8), $this->level);
Line 620: throw new Exception('WRONG VERSION');
Line 621: } else if($ver > $this->getVersion()) {
Line 622: $this->setVersion($ver);
Line 635: $maxwords = QRspec::getDataLength($this->version, $this->level);
/sprout/Helpers/phpqrcode/qrspec.php Highlighted file source
Line 22: * version 3 of the License, or any later version.
Line 34: define('QRSPEC_VERSION_MAX', 40);
Line 35: define('QRSPEC_WIDTH_MAX', 177);
Line 42: class QRspec {
Line 89: public static function getDataLength($version, $level)
Line 91: return self::$capacity[$version][QRCAP_WORDS] - self::$capacity[$version][QRCAP_EC][$level];
Line 95: public static function getECCLength($version, $level)
Line 97: return self::$capacity[$version][QRCAP_EC][$level];
Line 101: public static function getWidth($version)
Line 103: return self::$capacity[$version][QRCAP_WIDTH];
Line 107: public static function getRemainder($version)
Line 109: return self::$capacity[$version][QRCAP_REMINDER];
Line 113: public static function getMinimumVersion($size, $level)
Line 116: for($i=1; $i<= QRSPEC_VERSION_MAX; $i++) {
Line 135: public static function lengthIndicator($mode, $version)
Line 140: if ($version <= 9) {
Line 142: } else if ($version <= 26) {
Line 152: public static function maximumWords($mode, $version)
Line 157: if($version <= 9) {
Line 159: } else if($version <= 26) {
Line 226: public static function getEccSpec($version, $level, array &$spec)
Line 232: $b1 = self::$eccTable[$version][$level][0];
Line 233: $b2 = self::$eccTable[$version][$level][1];
Line 234: $data = self::getDataLength($version, $level);
Line 235: $ecc = self::getECCLength($version, $level);
Line 294: QRstr::set($frame, $xStart, $yStart+$y, $finder[$y]);
Line 299: public static function putAlignmentPattern($version, &$frame, $width)
Line 301: if($version < 2)
Line 304: $d = self::$alignmentPattern[$version][1] - self::$alignmentPattern[$version][0];
Line 308: $w = (int)(($width - self::$alignmentPattern[$version][0]) / $d + 2);
Line 312: $x = self::$alignmentPattern[$version][0];
Line 313: $y = self::$alignmentPattern[$version][0];
Line 318: $cx = self::$alignmentPattern[$version][0];
Line 325: $cy = self::$alignmentPattern[$version][0];
Line 327: $cx = self::$alignmentPattern[$version][0];
Line 336: // Version information pattern -----------------------------------------
Line 338: // Version information pattern (BCH coded).
Line 341: // size: [QRSPEC_VERSION_MAX - 6]
Line 343: public static $versionPattern = array(
Line 352: public static function getVersionPattern($version)
Line 354: if($version < 7 || $version > QRSPEC_VERSION_MAX)
Line 357: return self::$versionPattern[$version -7];
Line 361: // See calcFormatInfo in tests/test_qrspec.c (orginal qrencode c lib)
Line 405: QRstr::set($frame, $ox, $oy+$y, $finder[$y]);
Line 410: public static function createFrame($version)
Line 412: $width = self::$capacity[$version][QRCAP_WIDTH];
Line 433: QRstr::set($frame, 0, 7, $setPattern);
Line 434: QRstr::set($frame, $width-8, 7, $setPattern);
Line 435: QRstr::set($frame, 0, $width - 8, $setPattern);
Line 439: QRstr::set($frame, 0, 8, $setPattern);
Line 440: QRstr::set($frame, $width - 8, 8, $setPattern, 8);
Line 457: self::putAlignmentPattern($version, $frame, $width);
Line 459: // Version information
Line 460: if($version >= 7) {
Line 461: $vinf = self::getVersionPattern($version);
Line 518: $frameLine = join('<span class="f"> </span>', explode("\x88", $frameLine)); //version
Line 519: $frameLine = join('<span class="f">▒</span>', explode("\x89", $frameLine)); //version
Line 554: public static function newFrame($version)
Line 556: if($version < 1 || $version > QRSPEC_VERSION_MAX)
Line 559: if(!isset(self::$frames[$version])) {
Line 561: $fileName = QR_CACHE_DIR.'frame_'.$version.'.dat';
Line 565: self::$frames[$version] = self::unserial(file_get_contents($fileName));
Line 567: self::$frames[$version] = self::createFrame($version);
Line 568: file_put_contents($fileName, self::serial(self::$frames[$version]));
Line 571: self::$frames[$version] = self::createFrame($version);
Line 575: if(is_null(self::$frames[$version]))
Line 578: return self::$frames[$version];
Line 582: public static function rsBlockNum($spec) { return $spec[0] + $spec[3]; }
Line 583: public static function rsBlockNum1($spec) { return $spec[0]; }
Line 584: public static function rsDataCodes1($spec) { return $spec[1]; }
Line 585: public static function rsEccCodes1($spec) { return $spec[2]; }
Line 586: public static function rsBlockNum2($spec) { return $spec[3]; }
Line 587: public static function rsDataCodes2($spec) { return $spec[4]; }
Line 588: public static function rsEccCodes2($spec) { return $spec[2]; }
Line 589: public static function rsDataLength($spec) { return ($spec[0] * $spec[1]) + ($spec[3] * $spec[4]); }
Line 590: public static function rsEccLength($spec) { return ($spec[0] + $spec[3]) * $spec[2]; }
/sprout/Helpers/phpqrcode/qrsplit.php Highlighted file source
Line 22: * version 3 of the License, or any later version.
Line 33: class QRsplit {
Line 95: $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
Line 132: $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
Line 133: $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
Line 195: $la = QRspec::lengthIndicator(QR_MODE_AN, $this->input->getVersion());
Line 196: $ln = QRspec::lengthIndicator(QR_MODE_NUM, $this->input->getVersion());
Line 304: $split = new QRsplit($string, $input, $modeHint);
/sprout/Helpers/phpqrcode/qrtools.php Highlighted file source
Line 13: * version 3 of the License, or any later version. Line 42: public static function tcpdfBarcodeArray($code, $mode = 'QR,L', $tcPdfVersion = '4.5.037') Line 84: for ($a=1; $a <= QRSPEC_VERSION_MAX; $a++) { Line 85: $frame = QRspec::newFrame($a); Line 106: file_put_contents(QR_LOG_DIR.basename($outfile).'-errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND); Line 108: file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
/sprout/Helpers/Rs.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: namespace Sprout\Helpers; Line 24: class Rs Line 30: * @param array|PDOStatement $rs Resultset, which MUST have an id column Line 41: public static function groupByField($rs, $group_id, array $group_fields = array()) { Line 42: if (!is_array($rs) and !($rs instanceof PDOStatement)) { Line 43: throw new InvalidArgumentException('$rs must be array or PDOStatement'); Line 47: foreach ($rs as $row) { Line 49: throw new InvalidArgumentException('$rs must have an id column');
/sprout/Helpers/RssFeed.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 16: namespace Sprout\Helpers; Line 22: class RssFeed Line 26: * Download and parse a RSS feed Line 28: * Supports a subset of RSS 2.0 and also a subset of MRSS (Media RSS) 2.0 Line 37: * @param string $url Feed to load and parse Line 40: public static function parse($url) Line 47: foreach ($simple->channel->item as $rss_item) { Line 49: 'name' => (string)$rss_item->title, Line 50: 'date' => new DateTime($rss_item->pubDate), Line 51: 'url' => (string)$rss_item->link, Line 54: $text = (string)$rss_item->description; Line 59: $media = $rss_item->children('http://search.yahoo.com/mrss/'); Line 61: $attrs = $media_item->attributes(); Line 62: if ((string)$attrs['medium'] == 'image') { Line 63: $out_item['image'] = (string)$attrs['url'];
/sprout/sprout_load.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 13: use Sprout\Helpers\I18n; Line 14: use Sprout\Helpers\Pdb; Line 15: use Sprout\Helpers\Register; Line 16: use Sprout\Helpers\SessionStats; Line 17: use Sprout\Helpers\WidgetArea; Line 34: Register::linkspec('\\Sprout\\Helpers\\LinkSpecExternal', 'External URL'); Line 35: Register::linkspec('\\Sprout\\Helpers\\LinkSpecInternal', 'Internal URL'); Line 36: Register::linkspec('\\Sprout\\Helpers\\LinkSpecPage', 'Internal Page'); Line 37: Register::linkspec('\\Sprout\\Helpers\\LinkSpecDocument', 'Document'); Line 39: Register::rteLibrary('\\Sprout\\Helpers\\RteLibraryPages'); Line 40: Register::rteLibrary('\\Sprout\\Helpers\\RteLibraryDocuments'); Line 41: Register::rteLibrary('\\Sprout\\Helpers\\RteLibrarySounds'); Line 42: Register::rteLibrary('\\Sprout\\Helpers\\RteLibraryImages'); Line 44: Register::sitemapGen('\\Sprout\\Helpers\\SitemapGenPages'); Line 46: Register::searchHandler('Sprout\\Controllers\\PageController', 'page_keywords', ['main.active = 1', 'main.show_in_nav = 1']); Line 48: Register::frontEndController('Sprout\\Controllers\\AdvancedSearchController', 'Advanced search'); Line 50: Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'intlinks']); Line 51: Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'localAnchor']); Line 55: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\PageAdminController', 'cronPageActivate'); Line 56: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\PageAdminController', 'cronPageDeactivate'); Line 57: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\PageAdminController', 'cronCheckStale'); Line 58: Register::cronJob('daily', 'Sprout\\Controllers\\AdminController', 'cronGenericActivate'); Line 59: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\FileAdminController', 'cronCleanupInvalid'); Line 60: Register::cronJob('daily', 'Sprout\\Controllers\\ContentSubscribeController', 'cronSendSubscriptions'); Line 61: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\ActionLogAdminController', 'cronCleanup'); Line 63: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\DeviceCategory', 'Platform', 'Device category'); Line 64: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserName', 'Platform', 'Browser name'); Line 65: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserVersion', 'Platform', 'Browser version'); Line 66: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\TimeOnSite', 'Session', 'Minutes on site'); Line 67: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\ThisPageviews', 'Session', 'Pageviews'); Line 68: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\TotalPageviews', 'Session', 'Pageviews (total)'); Line 69: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\UniquePageviews', 'Session', 'Pageviews (unique)'); Line 70: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\UtmSource', 'Acquisition', 'Source'); Line 71: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\UtmMedium', 'Acquisition', 'Medium'); Line 72: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\UtmCampaign', 'Acquisition', 'Campaign'); Line 73: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\Referrer', 'Acquisition', 'Full referrer'); Line 128: 'RssFeedWidget' => 'RSS Feed', Line 183: 'desc' => 'Renders QR code', Line 184: 'class' => 'Sprout\\Controllers\\DbToolsController',
/sprout/sprout_load.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 13: use Sprout\Helpers\I18n; Line 14: use Sprout\Helpers\Pdb; Line 15: use Sprout\Helpers\Register; Line 16: use Sprout\Helpers\SessionStats; Line 17: use Sprout\Helpers\WidgetArea; Line 34: Register::linkspec('\\Sprout\\Helpers\\LinkSpecExternal', 'External URL'); Line 35: Register::linkspec('\\Sprout\\Helpers\\LinkSpecInternal', 'Internal URL'); Line 36: Register::linkspec('\\Sprout\\Helpers\\LinkSpecPage', 'Internal Page'); Line 37: Register::linkspec('\\Sprout\\Helpers\\LinkSpecDocument', 'Document'); Line 39: Register::rteLibrary('\\Sprout\\Helpers\\RteLibraryPages'); Line 40: Register::rteLibrary('\\Sprout\\Helpers\\RteLibraryDocuments'); Line 41: Register::rteLibrary('\\Sprout\\Helpers\\RteLibrarySounds'); Line 42: Register::rteLibrary('\\Sprout\\Helpers\\RteLibraryImages'); Line 44: Register::sitemapGen('\\Sprout\\Helpers\\SitemapGenPages'); Line 46: Register::searchHandler('Sprout\\Controllers\\PageController', 'page_keywords', ['main.active = 1', 'main.show_in_nav = 1']); Line 48: Register::frontEndController('Sprout\\Controllers\\AdvancedSearchController', 'Advanced search'); Line 50: Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'intlinks']); Line 51: Register::contentReplace('inner_html', ['Sprout\\Helpers\\ContentReplace', 'localAnchor']); Line 55: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\PageAdminController', 'cronPageActivate'); Line 56: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\PageAdminController', 'cronPageDeactivate'); Line 57: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\PageAdminController', 'cronCheckStale'); Line 58: Register::cronJob('daily', 'Sprout\\Controllers\\AdminController', 'cronGenericActivate'); Line 59: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\FileAdminController', 'cronCleanupInvalid'); Line 60: Register::cronJob('daily', 'Sprout\\Controllers\\ContentSubscribeController', 'cronSendSubscriptions'); Line 61: Register::cronJob('daily', 'Sprout\\Controllers\\Admin\\ActionLogAdminController', 'cronCleanup'); Line 63: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\DeviceCategory', 'Platform', 'Device category'); Line 64: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserName', 'Platform', 'Browser name'); Line 65: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Platform\\BrowserVersion', 'Platform', 'Browser version'); Line 66: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\TimeOnSite', 'Session', 'Minutes on site'); Line 67: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\ThisPageviews', 'Session', 'Pageviews'); Line 68: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\TotalPageviews', 'Session', 'Pageviews (total)'); Line 69: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Session\\UniquePageviews', 'Session', 'Pageviews (unique)'); Line 70: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\UtmSource', 'Acquisition', 'Source'); Line 71: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\UtmMedium', 'Acquisition', 'Medium'); Line 72: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\UtmCampaign', 'Acquisition', 'Campaign'); Line 73: Register::displayCondition('Sprout\\Helpers\\DisplayConditions\\Acquisition\\Referrer', 'Acquisition', 'Full referrer'); Line 128: 'RssFeedWidget' => 'RSS Feed', Line 183: 'desc' => 'Renders QR code', Line 184: 'class' => 'Sprout\\Controllers\\DbToolsController',
/sprout/tests/i18nTest.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: use Sprout\Helpers\I18n; Line 27: // Other countries which format numbers the same as AUS Line 61: array('IND', 1234.123, 'Rs.1,234'), Line 62: array('IND', -1234.123, '-Rs.1,234'), Line 63: array('IND', -121234.123, '-Rs.1,21,234'),
/sprout/tests/i18nTest.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 14: use Sprout\Helpers\I18n; Line 27: // Other countries which format numbers the same as AUS Line 61: array('IND', 1234.123, 'Rs.1,234'), Line 62: array('IND', -1234.123, '-Rs.1,234'), Line 63: array('IND', -121234.123, '-Rs.1,21,234'),
/sprout/Widgets/RssFeedWidget.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 18: use Sprout\Helpers\Enc; Line 19: use Sprout\Helpers\Form; Line 20: use Sprout\Helpers\RssFeed; Line 21: use Sprout\Helpers\View; Line 27: class RssFeedWidget extends Widget Line 29: protected $friendly_name = 'RSS Feed'; Line 30: protected $friendly_desc = 'Display an RSS feed'; Line 43: $items = RssFeed::parse($this->settings['url']); Line 52: $view = new View('sprout/rss_feed');
/sprout/Widgets/RssFeedWidget.php Highlighted file source
Line 9: * version 2 of the License, or (at your option) any later version. Line 18: use Sprout\Helpers\Enc; Line 19: use Sprout\Helpers\Form; Line 20: use Sprout\Helpers\RssFeed; Line 21: use Sprout\Helpers\View; Line 27: class RssFeedWidget extends Widget Line 29: protected $friendly_name = 'RSS Feed'; Line 30: protected $friendly_desc = 'Display an RSS feed'; Line 43: $items = RssFeed::parse($this->settings['url']); Line 52: $view = new View('sprout/rss_feed');
A total of 438 lines in 22 files were found
|