This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * | |
| */ | |
| class Cache | |
| { | |
| const OPT_JITTER = 10; | |
| const OPT_JITTER_ENABLE = 11; | |
| const OPT_LOGGER = 20; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * This is basically $txt, but a lot smarter | |
| * @todo add Language classes for each language then move the language files to classes (\Translator\English\PostLanguage) to allow for namespacing | |
| * instead of global $txt, the class would implement LanguageFileInterface which has public getText() | |
| * | |
| */ | |
| class Translator extends ArrayObject | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class ElkArte_Hook | |
| { | |
| protected $_hooks = array(); | |
| protected $_files = array(); | |
| protected $_path_replacements; | |
| protected $_debug = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function elkc() | |
| { | |
| static $elkc; | |
| if ($elkc === null) | |
| $elkc = new Elk_Container; | |
| return $elkc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $app['random_string'] = $app->protect(function (array $options = array()) { | |
| static $default_options = array( | |
| 'length' => 5, | |
| 'uppercase' => true, | |
| 'lowercase' => true, | |
| 'numeric' => true, | |
| 'special_chars' => false, | |
| 'chars' => 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action="{{action}}" method="post" {{ form_enctype(form)}} > | |
| {{form_errors(form)}} | |
| <legend>{{legend}}</legend> | |
| <ul> | |
| <li> | |
| {{ form_errors(form.title) }} | |
| {{ form_label(form.title) }} | |
| {{ form_widget(form.title) }} | |
| </li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function getRandomString($options = array()) | |
| { | |
| static $default_options = array( | |
| 'length' => 5, | |
| 'uppercase' => true, | |
| 'lowercase' => true, | |
| 'numeric' => true, | |
| 'special_chars' => false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <fieldType name="plain_text" class="solr.StrField" sortMissingLast="true"> | |
| <!-- Analyzer to use when indexing a field of this type --> | |
| <analyzer type="index"> | |
| <!-- make all text lowercase --> | |
| <filter class="solr.LowerCaseFilterFactory" /> | |
| </analyzer> | |
| <!-- Analyzer to use when matching against field of this type --> | |
| <analyzer type="query"> | |
| <!-- make all text lowercase --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Groundup\Form; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
| class Search extends AbstractType | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function getRoute(array $parameters) | |
| { | |
| global $scripturl; | |
| $param_string = ''; | |
| foreach ($parameters as $k => $v) | |
| $param_string .= $k . '=' . $v . '&'; |