Pico.html 133 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
  5. <meta charset="utf-8"/>
  6. <title>Pico 1.0 API Documentation</title>
  7. <meta name="author" content=""/>
  8. <meta name="description" content=""/>
  9. <link href="../css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
  10. <link href="../css/font-awesome.min.css" rel="stylesheet">
  11. <link href="../css/prism.css" rel="stylesheet" media="all"/>
  12. <link href="../css/template.css" rel="stylesheet" media="all"/>
  13. <!--[if lt IE 9]>
  14. <script src="../js/html5.js"></script>
  15. <![endif]-->
  16. <script src="../js/jquery-1.11.0.min.js"></script>
  17. <script src="../js/ui/1.10.4/jquery-ui.min.js"></script>
  18. <script src="../js/bootstrap.min.js"></script>
  19. <script src="../js/jquery.smooth-scroll.js"></script>
  20. <script src="../js/prism.min.js"></script>
  21. <!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit-->
  22. <script type="text/javascript">
  23. function loadExternalCodeSnippets() {
  24. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
  25. var src = pre.getAttribute('data-src');
  26. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  27. var language = 'php';
  28. var code = document.createElement('code');
  29. code.className = 'language-' + language;
  30. pre.textContent = '';
  31. code.textContent = 'Loading…';
  32. pre.appendChild(code);
  33. var xhr = new XMLHttpRequest();
  34. xhr.open('GET', src, true);
  35. xhr.onreadystatechange = function () {
  36. if (xhr.readyState == 4) {
  37. if (xhr.status < 400 && xhr.responseText) {
  38. code.textContent = xhr.responseText;
  39. Prism.highlightElement(code);
  40. }
  41. else if (xhr.status >= 400) {
  42. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  43. }
  44. else {
  45. code.textContent = '✖ Error: File does not exist or is empty';
  46. }
  47. }
  48. };
  49. xhr.send(null);
  50. });
  51. }
  52. $(document).ready(function(){
  53. loadExternalCodeSnippets();
  54. });
  55. $('#source-view').on('shown', function () {
  56. loadExternalCodeSnippets();
  57. })
  58. </script>
  59. <link rel="shortcut icon" href="../images/favicon.ico"/>
  60. <link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/>
  61. <link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/>
  62. <link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/>
  63. </head>
  64. <body>
  65. <div class="navbar navbar-fixed-top">
  66. <div class="navbar-inner">
  67. <div class="container">
  68. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  69. <i class="icon-ellipsis-vertical"></i>
  70. </a>
  71. <a class="brand" href="../index.html">Pico 1.0 API Documentation</a>
  72. <div class="nav-collapse">
  73. <ul class="nav pull-right">
  74. <li class="dropdown" id="charts-menu">
  75. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  76. Charts <b class="caret"></b>
  77. </a>
  78. <ul class="dropdown-menu">
  79. <li>
  80. <a href="../graphs/class.html">
  81. <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
  82. </a>
  83. </li>
  84. </ul>
  85. </li>
  86. <li class="dropdown" id="reports-menu">
  87. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  88. Reports <b class="caret"></b>
  89. </a>
  90. <ul class="dropdown-menu">
  91. <li>
  92. <a href="../reports/errors.html">
  93. <i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">19</span>
  94. </a>
  95. </li>
  96. <li>
  97. <a href="../reports/markers.html">
  98. <i class="icon-list-alt"></i>&#160;Markers <span class="label label-info pull-right">1</span>
  99. </a>
  100. </li>
  101. <li>
  102. <a href="../reports/deprecated.html">
  103. <i class="icon-list-alt"></i>&#160;Deprecated <span class="label label-info pull-right">0</span>
  104. </a>
  105. </li>
  106. </ul>
  107. </li>
  108. </ul>
  109. </div>
  110. </div>
  111. </div>
  112. <!--<div class="go_to_top">-->
  113. <!--<a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>-->
  114. <!--</div>-->
  115. </div>
  116. <div id="___" class="container-fluid">
  117. <section class="row-fluid">
  118. <div class="span2 sidebar">
  119. <div class="accordion" style="margin-bottom: 0">
  120. <div class="accordion-group">
  121. <div class="accordion-heading">
  122. <a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-1354212884"></a>
  123. <a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
  124. </div>
  125. <div id="namespace-1354212884" class="accordion-body collapse in">
  126. <div class="accordion-inner">
  127. <ul>
  128. <li class="interface"><a href="../classes/PicoPluginInterface.html">PicoPluginInterface</a></li>
  129. <li class="class"><a href="../classes/AbstractPicoPlugin.html">AbstractPicoPlugin</a></li>
  130. <li class="class"><a href="../classes/DummyPlugin.html">DummyPlugin</a></li>
  131. <li class="class"><a href="../classes/Pico.html">Pico</a></li>
  132. </ul>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </section>
  139. <section class="row-fluid">
  140. <div class="span10 offset2">
  141. <div class="row-fluid">
  142. <div class="span8 content class">
  143. <nav>
  144. <a href="../namespaces/default.html">\</a> <i class="icon-level-up"></i>
  145. </nav>
  146. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>
  147. <h1><small>\</small>Pico</h1>
  148. <p><em>Pico</em></p>
  149. <p>Pico is a stupidly simple, blazing fast, flat file CMS.</p>
  150. <ul>
  151. <li>Stupidly Simple: Picos makes creating and maintaining a
  152. website as simple as editing text files.</li>
  153. <li>Blazing Fast: Pico is seriously lightweight and doesn't
  154. use a database, making it super fast.</li>
  155. <li>No Database: Pico is a &quot;flat file&quot; CMS, meaning no
  156. database woes, no MySQL queries, nothing.</li>
  157. <li>Markdown Formatting: Edit your website in your favourite
  158. text editor using simple Markdown formatting.</li>
  159. <li>Twig Templates: Pico uses the Twig templating engine,
  160. for powerful and flexible themes.</li>
  161. <li>Open Source: Pico is completely free and open source,
  162. released under the MIT license.
  163. See <a href="http://picocms.org/">http://picocms.org/</a> for more info.</li>
  164. </ul>
  165. <section id="summary">
  166. <h2>Summary</h2>
  167. <section class="row-fluid heading">
  168. <section class="span4">
  169. <a href="#methods">Methods</a>
  170. </section>
  171. <section class="span4">
  172. <a href="#properties">Properties</a>
  173. </section>
  174. <section class="span4">
  175. <a href="#constants">Constants</a>
  176. </section>
  177. </section>
  178. <section class="row-fluid public">
  179. <section class="span4">
  180. <a href="../classes/Pico.html#method___construct" class="">__construct()</a><br />
  181. <a href="../classes/Pico.html#method_getRootDir" class="">getRootDir()</a><br />
  182. <a href="../classes/Pico.html#method_getConfigDir" class="">getConfigDir()</a><br />
  183. <a href="../classes/Pico.html#method_getPluginsDir" class="">getPluginsDir()</a><br />
  184. <a href="../classes/Pico.html#method_getThemesDir" class="">getThemesDir()</a><br />
  185. <a href="../classes/Pico.html#method_run" class="">run()</a><br />
  186. <a href="../classes/Pico.html#method_getPlugin" class="">getPlugin()</a><br />
  187. <a href="../classes/Pico.html#method_getPlugins" class="">getPlugins()</a><br />
  188. <a href="../classes/Pico.html#method_setConfig" class="">setConfig()</a><br />
  189. <a href="../classes/Pico.html#method_getConfig" class="">getConfig()</a><br />
  190. <a href="../classes/Pico.html#method_getRequestUrl" class="">getRequestUrl()</a><br />
  191. <a href="../classes/Pico.html#method_getRequestFile" class="">getRequestFile()</a><br />
  192. <a href="../classes/Pico.html#method_loadFileContent" class="">loadFileContent()</a><br />
  193. <a href="../classes/Pico.html#method_load404Content" class="">load404Content()</a><br />
  194. <a href="../classes/Pico.html#method_getRawContent" class="">getRawContent()</a><br />
  195. <a href="../classes/Pico.html#method_getMetaHeaders" class="">getMetaHeaders()</a><br />
  196. <a href="../classes/Pico.html#method_parseFileMeta" class="">parseFileMeta()</a><br />
  197. <a href="../classes/Pico.html#method_getFileMeta" class="">getFileMeta()</a><br />
  198. <a href="../classes/Pico.html#method_prepareFileContent" class="">prepareFileContent()</a><br />
  199. <a href="../classes/Pico.html#method_parseFileContent" class="">parseFileContent()</a><br />
  200. <a href="../classes/Pico.html#method_getFileContent" class="">getFileContent()</a><br />
  201. <a href="../classes/Pico.html#method_getPages" class="">getPages()</a><br />
  202. <a href="../classes/Pico.html#method_getCurrentPage" class="">getCurrentPage()</a><br />
  203. <a href="../classes/Pico.html#method_getPreviousPage" class="">getPreviousPage()</a><br />
  204. <a href="../classes/Pico.html#method_getNextPage" class="">getNextPage()</a><br />
  205. <a href="../classes/Pico.html#method_getTwig" class="">getTwig()</a><br />
  206. <a href="../classes/Pico.html#method_getBaseUrl" class="">getBaseUrl()</a><br />
  207. <a href="../classes/Pico.html#method_isUrlRewritingEnabled" class="">isUrlRewritingEnabled()</a><br />
  208. <a href="../classes/Pico.html#method_getPageUrl" class="">getPageUrl()</a><br />
  209. </section>
  210. <section class="span4">
  211. <em>No public properties found</em>
  212. </section>
  213. <section class="span4">
  214. <a href="../classes/Pico.html#constant_SORT_ASC" class="">SORT_ASC</a><br />
  215. <a href="../classes/Pico.html#constant_SORT_DESC" class="">SORT_DESC</a><br />
  216. <a href="../classes/Pico.html#constant_SORT_NONE" class="">SORT_NONE</a><br />
  217. </section>
  218. </section>
  219. <section class="row-fluid protected">
  220. <section class="span4">
  221. <a href="../classes/Pico.html#method_loadPlugins" class="">loadPlugins()</a><br />
  222. <a href="../classes/Pico.html#method_loadConfig" class="">loadConfig()</a><br />
  223. <a href="../classes/Pico.html#method_evaluateRequestUrl" class="">evaluateRequestUrl()</a><br />
  224. <a href="../classes/Pico.html#method_discoverRequestFile" class="">discoverRequestFile()</a><br />
  225. <a href="../classes/Pico.html#method_readPages" class="">readPages()</a><br />
  226. <a href="../classes/Pico.html#method_sortPages" class="">sortPages()</a><br />
  227. <a href="../classes/Pico.html#method_discoverCurrentPage" class="">discoverCurrentPage()</a><br />
  228. <a href="../classes/Pico.html#method_registerTwig" class="">registerTwig()</a><br />
  229. <a href="../classes/Pico.html#method_getTwigVariables" class="">getTwigVariables()</a><br />
  230. <a href="../classes/Pico.html#method_getFiles" class="">getFiles()</a><br />
  231. <a href="../classes/Pico.html#method_getAbsolutePath" class="">getAbsolutePath()</a><br />
  232. <a href="../classes/Pico.html#method_triggerEvent" class="">triggerEvent()</a><br />
  233. </section>
  234. <section class="span4">
  235. <a href="../classes/Pico.html#property_rootDir" class="">$rootDir</a><br />
  236. <a href="../classes/Pico.html#property_configDir" class="">$configDir</a><br />
  237. <a href="../classes/Pico.html#property_pluginsDir" class="">$pluginsDir</a><br />
  238. <a href="../classes/Pico.html#property_themesDir" class="">$themesDir</a><br />
  239. <a href="../classes/Pico.html#property_locked" class="">$locked</a><br />
  240. <a href="../classes/Pico.html#property_plugins" class="">$plugins</a><br />
  241. <a href="../classes/Pico.html#property_config" class="">$config</a><br />
  242. <a href="../classes/Pico.html#property_requestUrl" class="">$requestUrl</a><br />
  243. <a href="../classes/Pico.html#property_requestFile" class="">$requestFile</a><br />
  244. <a href="../classes/Pico.html#property_rawContent" class="">$rawContent</a><br />
  245. <a href="../classes/Pico.html#property_meta" class="">$meta</a><br />
  246. <a href="../classes/Pico.html#property_content" class="">$content</a><br />
  247. <a href="../classes/Pico.html#property_pages" class="">$pages</a><br />
  248. <a href="../classes/Pico.html#property_currentPage" class="">$currentPage</a><br />
  249. <a href="../classes/Pico.html#property_previousPage" class="">$previousPage</a><br />
  250. <a href="../classes/Pico.html#property_nextPage" class="">$nextPage</a><br />
  251. <a href="../classes/Pico.html#property_twig" class="">$twig</a><br />
  252. <a href="../classes/Pico.html#property_twigVariables" class="">$twigVariables</a><br />
  253. </section>
  254. <section class="span4">
  255. <em>N/A</em>
  256. </section>
  257. </section>
  258. <section class="row-fluid private">
  259. <section class="span4">
  260. <em>No private methods found</em>
  261. </section>
  262. <section class="span4">
  263. <em>No private properties found</em>
  264. </section>
  265. <section class="span4">
  266. <em>N/A</em>
  267. </section>
  268. </section>
  269. </section>
  270. </div>
  271. <aside class="span4 detailsbar">
  272. <dl>
  273. <dt>File</dt>
  274. <dd><a href="../files/lib.Pico.html"><div class="path-wrapper">lib/Pico.php</div></a></dd>
  275. <dt>Package</dt>
  276. <dd><div class="namespace-wrapper">Default</div></dd>
  277. <dt>Class hierarchy</dt>
  278. <dd class="hierarchy">
  279. <div class="namespace-wrapper">\Pico</div>
  280. </dd>
  281. <dt>See also</dt>
  282. <dd><a href="&lt;http://picocms.org&gt;"><span class="namespace-wrapper">&lt;http://picocms.org&gt;</span></a></dd>
  283. </dl>
  284. <h2>Tags</h2>
  285. <table class="table table-condensed">
  286. <tr>
  287. <th>
  288. author
  289. </th>
  290. <td>
  291. <p>Gilbert Pellegrom</p>
  292. <p>Daniel Rudolf</p>
  293. </td>
  294. </tr>
  295. <tr>
  296. <th>
  297. license
  298. </th>
  299. <td>
  300. <p>The MIT License <a href="http://opensource.org/licenses/MIT">http://opensource.org/licenses/MIT</a></p>
  301. </td>
  302. </tr>
  303. <tr>
  304. <th>
  305. version
  306. </th>
  307. <td>
  308. </td>
  309. </tr>
  310. </table>
  311. </aside>
  312. </div>
  313. <a id="constants" name="constants"></a>
  314. <div class="row-fluid">
  315. <div class="span8 content class">
  316. <h2>Constants</h2>
  317. </div>
  318. <aside class="span4 detailsbar"></aside>
  319. </div>
  320. <div class="row-fluid">
  321. <div class="span8 content class">
  322. <a id="constant_SORT_ASC" name="constant_SORT_ASC" class="anchor"></a>
  323. <article id="constant_SORT_ASC" class="constant">
  324. <h3 class="">SORT_ASC</h3>
  325. <pre class="signature">SORT_ASC</pre>
  326. <p><em>Sort files in alphabetical ascending order</em></p>
  327. </article>
  328. </div>
  329. <aside class="span4 detailsbar">
  330. <h1><i class="icon-arrow-down"></i></h1>
  331. <dl>
  332. <dt>See also</dt>
  333. <dd><a href="../classes/Pico.html#method_getFiles"><span class="namespace-wrapper">\Pico::getFiles()</span></a></dd>
  334. </dl>
  335. <h2>Tags</h2>
  336. <table class="table table-condensed">
  337. <tr><td colspan="2"><em>None found</em></td></tr>
  338. </table>
  339. </aside>
  340. </div>
  341. <div class="row-fluid">
  342. <div class="span8 content class">
  343. <a id="constant_SORT_DESC" name="constant_SORT_DESC" class="anchor"></a>
  344. <article id="constant_SORT_DESC" class="constant">
  345. <h3 class="">SORT_DESC</h3>
  346. <pre class="signature">SORT_DESC</pre>
  347. <p><em>Sort files in alphabetical descending order</em></p>
  348. </article>
  349. </div>
  350. <aside class="span4 detailsbar">
  351. <h1><i class="icon-arrow-down"></i></h1>
  352. <dl>
  353. <dt>See also</dt>
  354. <dd><a href="../classes/Pico.html#method_getFiles"><span class="namespace-wrapper">\Pico::getFiles()</span></a></dd>
  355. </dl>
  356. <h2>Tags</h2>
  357. <table class="table table-condensed">
  358. <tr><td colspan="2"><em>None found</em></td></tr>
  359. </table>
  360. </aside>
  361. </div>
  362. <div class="row-fluid">
  363. <div class="span8 content class">
  364. <a id="constant_SORT_NONE" name="constant_SORT_NONE" class="anchor"></a>
  365. <article id="constant_SORT_NONE" class="constant">
  366. <h3 class="">SORT_NONE</h3>
  367. <pre class="signature">SORT_NONE</pre>
  368. <p><em>Don&#039;t sort files</em></p>
  369. </article>
  370. </div>
  371. <aside class="span4 detailsbar">
  372. <h1><i class="icon-arrow-down"></i></h1>
  373. <dl>
  374. <dt>See also</dt>
  375. <dd><a href="../classes/Pico.html#method_getFiles"><span class="namespace-wrapper">\Pico::getFiles()</span></a></dd>
  376. </dl>
  377. <h2>Tags</h2>
  378. <table class="table table-condensed">
  379. <tr><td colspan="2"><em>None found</em></td></tr>
  380. </table>
  381. </aside>
  382. </div>
  383. <a id="properties" name="properties"></a>
  384. <div class="row-fluid">
  385. <div class="span8 content class">
  386. <h2>Properties</h2>
  387. </div>
  388. <aside class="span4 detailsbar"></aside>
  389. </div>
  390. <div class="row-fluid">
  391. <div class="span8 content class">
  392. <a id="property_rootDir" name="property_rootDir" class="anchor"></a>
  393. <article class="property">
  394. <h3 class="protected ">$rootDir</h3>
  395. <pre class="signature">$rootDir : string</pre>
  396. <p><em>Root directory of this Pico instance</em></p>
  397. <h4>Type</h4>
  398. string
  399. </article>
  400. </div>
  401. <aside class="span4 detailsbar">
  402. <h1><i class="icon-arrow-down"></i></h1>
  403. <dl>
  404. <dt>See also</dt>
  405. <dd><a href="../classes/Pico.html#method_getRootDir"><span class="namespace-wrapper">\Pico::getRootDir()</span></a></dd>
  406. </dl>
  407. <h2>Tags</h2>
  408. <table class="table table-condensed">
  409. <tr><td colspan="2"><em>None found</em></td></tr>
  410. </table>
  411. </aside>
  412. </div>
  413. <div class="row-fluid">
  414. <div class="span8 content class">
  415. <a id="property_configDir" name="property_configDir" class="anchor"></a>
  416. <article class="property">
  417. <h3 class="protected ">$configDir</h3>
  418. <pre class="signature">$configDir : string</pre>
  419. <p><em>Config directory of this Pico instance</em></p>
  420. <h4>Type</h4>
  421. string
  422. </article>
  423. </div>
  424. <aside class="span4 detailsbar">
  425. <h1><i class="icon-arrow-down"></i></h1>
  426. <dl>
  427. <dt>See also</dt>
  428. <dd><a href="../classes/Pico.html#method_getConfigDir"><span class="namespace-wrapper">\Pico::getConfigDir()</span></a></dd>
  429. </dl>
  430. <h2>Tags</h2>
  431. <table class="table table-condensed">
  432. <tr><td colspan="2"><em>None found</em></td></tr>
  433. </table>
  434. </aside>
  435. </div>
  436. <div class="row-fluid">
  437. <div class="span8 content class">
  438. <a id="property_pluginsDir" name="property_pluginsDir" class="anchor"></a>
  439. <article class="property">
  440. <h3 class="protected ">$pluginsDir</h3>
  441. <pre class="signature">$pluginsDir : string</pre>
  442. <p><em>Plugins directory of this Pico instance</em></p>
  443. <h4>Type</h4>
  444. string
  445. </article>
  446. </div>
  447. <aside class="span4 detailsbar">
  448. <h1><i class="icon-arrow-down"></i></h1>
  449. <dl>
  450. <dt>See also</dt>
  451. <dd><a href="../classes/Pico.html#method_getPluginsDir"><span class="namespace-wrapper">\Pico::getPluginsDir()</span></a></dd>
  452. </dl>
  453. <h2>Tags</h2>
  454. <table class="table table-condensed">
  455. <tr><td colspan="2"><em>None found</em></td></tr>
  456. </table>
  457. </aside>
  458. </div>
  459. <div class="row-fluid">
  460. <div class="span8 content class">
  461. <a id="property_themesDir" name="property_themesDir" class="anchor"></a>
  462. <article class="property">
  463. <h3 class="protected ">$themesDir</h3>
  464. <pre class="signature">$themesDir : string</pre>
  465. <p><em>Themes directory of this Pico instance</em></p>
  466. <h4>Type</h4>
  467. string
  468. </article>
  469. </div>
  470. <aside class="span4 detailsbar">
  471. <h1><i class="icon-arrow-down"></i></h1>
  472. <dl>
  473. <dt>See also</dt>
  474. <dd><a href="../classes/Pico.html#method_getThemesDir"><span class="namespace-wrapper">\Pico::getThemesDir()</span></a></dd>
  475. </dl>
  476. <h2>Tags</h2>
  477. <table class="table table-condensed">
  478. <tr><td colspan="2"><em>None found</em></td></tr>
  479. </table>
  480. </aside>
  481. </div>
  482. <div class="row-fluid">
  483. <div class="span8 content class">
  484. <a id="property_locked" name="property_locked" class="anchor"></a>
  485. <article class="property">
  486. <h3 class="protected ">$locked</h3>
  487. <pre class="signature">$locked : boolean</pre>
  488. <p><em>Boolean indicating whether Picos processing started yet</em></p>
  489. <h4>Type</h4>
  490. boolean
  491. </article>
  492. </div>
  493. <aside class="span4 detailsbar">
  494. <h1><i class="icon-arrow-down"></i></h1>
  495. <dl>
  496. </dl>
  497. <h2>Tags</h2>
  498. <table class="table table-condensed">
  499. <tr><td colspan="2"><em>None found</em></td></tr>
  500. </table>
  501. </aside>
  502. </div>
  503. <div class="row-fluid">
  504. <div class="span8 content class">
  505. <a id="property_plugins" name="property_plugins" class="anchor"></a>
  506. <article class="property">
  507. <h3 class="protected ">$plugins</h3>
  508. <pre class="signature">$plugins : array&lt;mixed,object&gt;|null</pre>
  509. <p><em>List of loaded plugins</em></p>
  510. <h4>Type</h4>
  511. array&lt;mixed,object&gt;|null
  512. </article>
  513. </div>
  514. <aside class="span4 detailsbar">
  515. <h1><i class="icon-arrow-down"></i></h1>
  516. <dl>
  517. <dt>See also</dt>
  518. <dd><a href="../classes/Pico.html#method_getPlugins"><span class="namespace-wrapper">\Pico::getPlugins()</span></a></dd>
  519. </dl>
  520. <h2>Tags</h2>
  521. <table class="table table-condensed">
  522. <tr><td colspan="2"><em>None found</em></td></tr>
  523. </table>
  524. </aside>
  525. </div>
  526. <div class="row-fluid">
  527. <div class="span8 content class">
  528. <a id="property_config" name="property_config" class="anchor"></a>
  529. <article class="property">
  530. <h3 class="protected ">$config</h3>
  531. <pre class="signature">$config : array&lt;mixed,mixed&gt;|null</pre>
  532. <p><em>Current configuration of this Pico instance</em></p>
  533. <h4>Type</h4>
  534. array&lt;mixed,mixed&gt;|null
  535. </article>
  536. </div>
  537. <aside class="span4 detailsbar">
  538. <h1><i class="icon-arrow-down"></i></h1>
  539. <dl>
  540. <dt>See also</dt>
  541. <dd><a href="../classes/Pico.html#method_getConfig"><span class="namespace-wrapper">\Pico::getConfig()</span></a></dd>
  542. </dl>
  543. <h2>Tags</h2>
  544. <table class="table table-condensed">
  545. <tr><td colspan="2"><em>None found</em></td></tr>
  546. </table>
  547. </aside>
  548. </div>
  549. <div class="row-fluid">
  550. <div class="span8 content class">
  551. <a id="property_requestUrl" name="property_requestUrl" class="anchor"></a>
  552. <article class="property">
  553. <h3 class="protected ">$requestUrl</h3>
  554. <pre class="signature">$requestUrl : string|null</pre>
  555. <p><em>Part of the URL describing the requested contents</em></p>
  556. <h4>Type</h4>
  557. string|null
  558. </article>
  559. </div>
  560. <aside class="span4 detailsbar">
  561. <h1><i class="icon-arrow-down"></i></h1>
  562. <dl>
  563. <dt>See also</dt>
  564. <dd><a href="../classes/Pico.html#method_getRequestUrl"><span class="namespace-wrapper">\Pico::getRequestUrl()</span></a></dd>
  565. </dl>
  566. <h2>Tags</h2>
  567. <table class="table table-condensed">
  568. <tr><td colspan="2"><em>None found</em></td></tr>
  569. </table>
  570. </aside>
  571. </div>
  572. <div class="row-fluid">
  573. <div class="span8 content class">
  574. <a id="property_requestFile" name="property_requestFile" class="anchor"></a>
  575. <article class="property">
  576. <h3 class="protected ">$requestFile</h3>
  577. <pre class="signature">$requestFile : string|null</pre>
  578. <p><em>Absolute path to the content file being served</em></p>
  579. <h4>Type</h4>
  580. string|null
  581. </article>
  582. </div>
  583. <aside class="span4 detailsbar">
  584. <h1><i class="icon-arrow-down"></i></h1>
  585. <dl>
  586. <dt>See also</dt>
  587. <dd><a href="../classes/Pico.html#method_getRequestFile"><span class="namespace-wrapper">\Pico::getRequestFile()</span></a></dd>
  588. </dl>
  589. <h2>Tags</h2>
  590. <table class="table table-condensed">
  591. <tr><td colspan="2"><em>None found</em></td></tr>
  592. </table>
  593. </aside>
  594. </div>
  595. <div class="row-fluid">
  596. <div class="span8 content class">
  597. <a id="property_rawContent" name="property_rawContent" class="anchor"></a>
  598. <article class="property">
  599. <h3 class="protected ">$rawContent</h3>
  600. <pre class="signature">$rawContent : string|null</pre>
  601. <p><em>Raw, not yet parsed contents to serve</em></p>
  602. <h4>Type</h4>
  603. string|null
  604. </article>
  605. </div>
  606. <aside class="span4 detailsbar">
  607. <h1><i class="icon-arrow-down"></i></h1>
  608. <dl>
  609. <dt>See also</dt>
  610. <dd><a href="../classes/Pico.html#method_getRawContent"><span class="namespace-wrapper">\Pico::getRawContent()</span></a></dd>
  611. </dl>
  612. <h2>Tags</h2>
  613. <table class="table table-condensed">
  614. <tr><td colspan="2"><em>None found</em></td></tr>
  615. </table>
  616. </aside>
  617. </div>
  618. <div class="row-fluid">
  619. <div class="span8 content class">
  620. <a id="property_meta" name="property_meta" class="anchor"></a>
  621. <article class="property">
  622. <h3 class="protected ">$meta</h3>
  623. <pre class="signature">$meta : array&lt;mixed,string&gt;|null</pre>
  624. <p><em>Meta data of the page to serve</em></p>
  625. <h4>Type</h4>
  626. array&lt;mixed,string&gt;|null
  627. </article>
  628. </div>
  629. <aside class="span4 detailsbar">
  630. <h1><i class="icon-arrow-down"></i></h1>
  631. <dl>
  632. <dt>See also</dt>
  633. <dd><a href="../classes/Pico.html#method_getFileMeta"><span class="namespace-wrapper">\Pico::getFileMeta()</span></a></dd>
  634. </dl>
  635. <h2>Tags</h2>
  636. <table class="table table-condensed">
  637. <tr><td colspan="2"><em>None found</em></td></tr>
  638. </table>
  639. </aside>
  640. </div>
  641. <div class="row-fluid">
  642. <div class="span8 content class">
  643. <a id="property_content" name="property_content" class="anchor"></a>
  644. <article class="property">
  645. <h3 class="protected ">$content</h3>
  646. <pre class="signature">$content : string|null</pre>
  647. <p><em>Parsed content being served</em></p>
  648. <h4>Type</h4>
  649. string|null
  650. </article>
  651. </div>
  652. <aside class="span4 detailsbar">
  653. <h1><i class="icon-arrow-down"></i></h1>
  654. <dl>
  655. <dt>See also</dt>
  656. <dd><a href="../classes/Pico.html#method_getFileContent"><span class="namespace-wrapper">\Pico::getFileContent()</span></a></dd>
  657. </dl>
  658. <h2>Tags</h2>
  659. <table class="table table-condensed">
  660. <tr><td colspan="2"><em>None found</em></td></tr>
  661. </table>
  662. </aside>
  663. </div>
  664. <div class="row-fluid">
  665. <div class="span8 content class">
  666. <a id="property_pages" name="property_pages" class="anchor"></a>
  667. <article class="property">
  668. <h3 class="protected ">$pages</h3>
  669. <pre class="signature">$pages : array&lt;mixed,array&gt;|null</pre>
  670. <p><em>List of known pages</em></p>
  671. <h4>Type</h4>
  672. array&lt;mixed,array&gt;|null
  673. </article>
  674. </div>
  675. <aside class="span4 detailsbar">
  676. <h1><i class="icon-arrow-down"></i></h1>
  677. <dl>
  678. <dt>See also</dt>
  679. <dd><a href="../classes/Pico.html#method_getPages"><span class="namespace-wrapper">\Pico::getPages()</span></a></dd>
  680. </dl>
  681. <h2>Tags</h2>
  682. <table class="table table-condensed">
  683. <tr><td colspan="2"><em>None found</em></td></tr>
  684. </table>
  685. </aside>
  686. </div>
  687. <div class="row-fluid">
  688. <div class="span8 content class">
  689. <a id="property_currentPage" name="property_currentPage" class="anchor"></a>
  690. <article class="property">
  691. <h3 class="protected ">$currentPage</h3>
  692. <pre class="signature">$currentPage : array|null</pre>
  693. <p><em>Data of the page being served</em></p>
  694. <h4>Type</h4>
  695. array|null
  696. </article>
  697. </div>
  698. <aside class="span4 detailsbar">
  699. <h1><i class="icon-arrow-down"></i></h1>
  700. <dl>
  701. <dt>See also</dt>
  702. <dd><a href="../classes/Pico.html#method_getCurrentPage"><span class="namespace-wrapper">\Pico::getCurrentPage()</span></a></dd>
  703. </dl>
  704. <h2>Tags</h2>
  705. <table class="table table-condensed">
  706. <tr><td colspan="2"><em>None found</em></td></tr>
  707. </table>
  708. </aside>
  709. </div>
  710. <div class="row-fluid">
  711. <div class="span8 content class">
  712. <a id="property_previousPage" name="property_previousPage" class="anchor"></a>
  713. <article class="property">
  714. <h3 class="protected ">$previousPage</h3>
  715. <pre class="signature">$previousPage : array|null</pre>
  716. <p><em>Data of the previous page relative to the page being served</em></p>
  717. <h4>Type</h4>
  718. array|null
  719. </article>
  720. </div>
  721. <aside class="span4 detailsbar">
  722. <h1><i class="icon-arrow-down"></i></h1>
  723. <dl>
  724. <dt>See also</dt>
  725. <dd><a href="../classes/Pico.html#method_getPreviousPage"><span class="namespace-wrapper">\Pico::getPreviousPage()</span></a></dd>
  726. </dl>
  727. <h2>Tags</h2>
  728. <table class="table table-condensed">
  729. <tr><td colspan="2"><em>None found</em></td></tr>
  730. </table>
  731. </aside>
  732. </div>
  733. <div class="row-fluid">
  734. <div class="span8 content class">
  735. <a id="property_nextPage" name="property_nextPage" class="anchor"></a>
  736. <article class="property">
  737. <h3 class="protected ">$nextPage</h3>
  738. <pre class="signature">$nextPage : array|null</pre>
  739. <p><em>Data of the next page relative to the page being served</em></p>
  740. <h4>Type</h4>
  741. array|null
  742. </article>
  743. </div>
  744. <aside class="span4 detailsbar">
  745. <h1><i class="icon-arrow-down"></i></h1>
  746. <dl>
  747. <dt>See also</dt>
  748. <dd><a href="../classes/Pico.html#method_getNextPage"><span class="namespace-wrapper">\Pico::getNextPage()</span></a></dd>
  749. </dl>
  750. <h2>Tags</h2>
  751. <table class="table table-condensed">
  752. <tr><td colspan="2"><em>None found</em></td></tr>
  753. </table>
  754. </aside>
  755. </div>
  756. <div class="row-fluid">
  757. <div class="span8 content class">
  758. <a id="property_twig" name="property_twig" class="anchor"></a>
  759. <article class="property">
  760. <h3 class="protected ">$twig</h3>
  761. <pre class="signature">$twig : \Twig_Environment|null</pre>
  762. <p><em>Twig instance used for template parsing</em></p>
  763. <h4>Type</h4>
  764. \Twig_Environment|null
  765. </article>
  766. </div>
  767. <aside class="span4 detailsbar">
  768. <h1><i class="icon-arrow-down"></i></h1>
  769. <dl>
  770. <dt>See also</dt>
  771. <dd><a href="../classes/Pico.html#method_getTwig"><span class="namespace-wrapper">\Pico::getTwig()</span></a></dd>
  772. </dl>
  773. <h2>Tags</h2>
  774. <table class="table table-condensed">
  775. <tr><td colspan="2"><em>None found</em></td></tr>
  776. </table>
  777. </aside>
  778. </div>
  779. <div class="row-fluid">
  780. <div class="span8 content class">
  781. <a id="property_twigVariables" name="property_twigVariables" class="anchor"></a>
  782. <article class="property">
  783. <h3 class="protected ">$twigVariables</h3>
  784. <pre class="signature">$twigVariables : array&lt;mixed,mixed&gt;|null</pre>
  785. <p><em>Variables passed to the twig template</em></p>
  786. <h4>Type</h4>
  787. array&lt;mixed,mixed&gt;|null
  788. </article>
  789. </div>
  790. <aside class="span4 detailsbar">
  791. <h1><i class="icon-arrow-down"></i></h1>
  792. <dl>
  793. <dt>See also</dt>
  794. <dd><a href=""><span class="namespace-wrapper">\Pico::getTwigVariables</span></a></dd>
  795. </dl>
  796. <h2>Tags</h2>
  797. <table class="table table-condensed">
  798. <tr><td colspan="2"><em>None found</em></td></tr>
  799. </table>
  800. </aside>
  801. </div>
  802. <a id="methods" name="methods"></a>
  803. <div class="row-fluid">
  804. <div class="span8 content class"><h2>Methods</h2></div>
  805. <aside class="span4 detailsbar"></aside>
  806. </div>
  807. <div class="row-fluid">
  808. <div class="span8 content class">
  809. <a id="method___construct" name="method___construct" class="anchor"></a>
  810. <article class="method">
  811. <h3 class="public ">__construct()</h3>
  812. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  813. <pre class="signature" style="margin-right: 54px;">__construct(string <span class="argument">$rootDir</span>, string <span class="argument">$configDir</span>, string <span class="argument">$pluginsDir</span>, string <span class="argument">$themesDir</span>) </pre>
  814. <p><em>Constructs a new Pico instance</em></p>
  815. <p>To carry out all the processing in Pico, call <a href="/classes/Pico.html#method_run">Pico::run()</a>.</p>
  816. <h4>Parameters</h4>
  817. <table class="table table-condensed table-hover">
  818. <tr>
  819. <td>string</td>
  820. <td>$rootDir </td>
  821. <td><p>root directory of this Pico instance</p></td>
  822. </tr>
  823. <tr>
  824. <td>string</td>
  825. <td>$configDir </td>
  826. <td><p>config directory of this Pico instance</p></td>
  827. </tr>
  828. <tr>
  829. <td>string</td>
  830. <td>$pluginsDir </td>
  831. <td><p>plugins directory of this Pico instance</p></td>
  832. </tr>
  833. <tr>
  834. <td>string</td>
  835. <td>$themesDir </td>
  836. <td><p>themes directory of this Pico instance</p></td>
  837. </tr>
  838. </table>
  839. </article>
  840. </div>
  841. <aside class="span4 detailsbar">
  842. <h1><i class="icon-arrow-down"></i></h1>
  843. <dl>
  844. </dl>
  845. <h2>Tags</h2>
  846. <table class="table table-condensed">
  847. <tr><td colspan="2"><em>None found</em></td></tr>
  848. </table>
  849. </aside>
  850. </div>
  851. <div class="row-fluid">
  852. <div class="span8 content class">
  853. <a id="method_getRootDir" name="method_getRootDir" class="anchor"></a>
  854. <article class="method">
  855. <h3 class="public ">getRootDir()</h3>
  856. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  857. <pre class="signature" style="margin-right: 54px;">getRootDir() : string</pre>
  858. <p><em>Returns the root directory of this Pico instance</em></p>
  859. <h4>Returns</h4>
  860. string
  861. &mdash; <p>root directory path</p>
  862. </article>
  863. </div>
  864. <aside class="span4 detailsbar">
  865. <h1><i class="icon-arrow-down"></i></h1>
  866. <dl>
  867. </dl>
  868. <h2>Tags</h2>
  869. <table class="table table-condensed">
  870. <tr><td colspan="2"><em>None found</em></td></tr>
  871. </table>
  872. </aside>
  873. </div>
  874. <div class="row-fluid">
  875. <div class="span8 content class">
  876. <a id="method_getConfigDir" name="method_getConfigDir" class="anchor"></a>
  877. <article class="method">
  878. <h3 class="public ">getConfigDir()</h3>
  879. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  880. <pre class="signature" style="margin-right: 54px;">getConfigDir() : string</pre>
  881. <p><em>Returns the config directory of this Pico instance</em></p>
  882. <h4>Returns</h4>
  883. string
  884. &mdash; <p>config directory path</p>
  885. </article>
  886. </div>
  887. <aside class="span4 detailsbar">
  888. <h1><i class="icon-arrow-down"></i></h1>
  889. <dl>
  890. </dl>
  891. <h2>Tags</h2>
  892. <table class="table table-condensed">
  893. <tr><td colspan="2"><em>None found</em></td></tr>
  894. </table>
  895. </aside>
  896. </div>
  897. <div class="row-fluid">
  898. <div class="span8 content class">
  899. <a id="method_getPluginsDir" name="method_getPluginsDir" class="anchor"></a>
  900. <article class="method">
  901. <h3 class="public ">getPluginsDir()</h3>
  902. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  903. <pre class="signature" style="margin-right: 54px;">getPluginsDir() : string</pre>
  904. <p><em>Returns the plugins directory of this Pico instance</em></p>
  905. <h4>Returns</h4>
  906. string
  907. &mdash; <p>plugins directory path</p>
  908. </article>
  909. </div>
  910. <aside class="span4 detailsbar">
  911. <h1><i class="icon-arrow-down"></i></h1>
  912. <dl>
  913. </dl>
  914. <h2>Tags</h2>
  915. <table class="table table-condensed">
  916. <tr><td colspan="2"><em>None found</em></td></tr>
  917. </table>
  918. </aside>
  919. </div>
  920. <div class="row-fluid">
  921. <div class="span8 content class">
  922. <a id="method_getThemesDir" name="method_getThemesDir" class="anchor"></a>
  923. <article class="method">
  924. <h3 class="public ">getThemesDir()</h3>
  925. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  926. <pre class="signature" style="margin-right: 54px;">getThemesDir() : string</pre>
  927. <p><em>Returns the themes directory of this Pico instance</em></p>
  928. <h4>Returns</h4>
  929. string
  930. &mdash; <p>themes directory path</p>
  931. </article>
  932. </div>
  933. <aside class="span4 detailsbar">
  934. <h1><i class="icon-arrow-down"></i></h1>
  935. <dl>
  936. </dl>
  937. <h2>Tags</h2>
  938. <table class="table table-condensed">
  939. <tr><td colspan="2"><em>None found</em></td></tr>
  940. </table>
  941. </aside>
  942. </div>
  943. <div class="row-fluid">
  944. <div class="span8 content class">
  945. <a id="method_run" name="method_run" class="anchor"></a>
  946. <article class="method">
  947. <h3 class="public ">run()</h3>
  948. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  949. <pre class="signature" style="margin-right: 54px;">run() : string</pre>
  950. <p><em>Runs this Pico instance</em></p>
  951. <p>Loads plugins, evaluates the config file, does URL routing, parses
  952. meta headers, processes Markdown, does Twig processing and returns
  953. the rendered contents.</p>
  954. <h4>Returns</h4>
  955. string
  956. &mdash; <p>rendered Pico contents</p>
  957. </article>
  958. </div>
  959. <aside class="span4 detailsbar">
  960. <h1><i class="icon-arrow-down"></i></h1>
  961. <dl>
  962. </dl>
  963. <h2>Tags</h2>
  964. <table class="table table-condensed">
  965. <tr><td colspan="2"><em>None found</em></td></tr>
  966. </table>
  967. </aside>
  968. </div>
  969. <div class="row-fluid">
  970. <div class="span8 content class">
  971. <a id="method_getPlugin" name="method_getPlugin" class="anchor"></a>
  972. <article class="method">
  973. <h3 class="public ">getPlugin()</h3>
  974. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  975. <pre class="signature" style="margin-right: 54px;">getPlugin(string <span class="argument">$pluginName</span>) : object</pre>
  976. <p><em>Returns the instance of a named plugin</em></p>
  977. <p>Plugins SHOULD implement <a href="/classes/PicoPluginInterface.html">PicoPluginInterface</a>, but you MUST NOT
  978. rely on it. For more information see <a href="/classes/PicoPluginInterface.html">PicoPluginInterface</a>.</p>
  979. <h4>Parameters</h4>
  980. <table class="table table-condensed table-hover">
  981. <tr>
  982. <td>string</td>
  983. <td>$pluginName </td>
  984. <td><p>name of the plugin</p></td>
  985. </tr>
  986. </table>
  987. <h4>Throws</h4>
  988. <dl>
  989. <dt>\RuntimeException</dt>
  990. <dd><p>thrown when the plugin wasn't found</p></dd>
  991. </dl>
  992. <h4>Returns</h4>
  993. object
  994. &mdash; <p>instance of the plugin</p>
  995. </article>
  996. </div>
  997. <aside class="span4 detailsbar">
  998. <h1><i class="icon-arrow-down"></i></h1>
  999. <dl>
  1000. <dt>See also</dt>
  1001. <dd><a href="../classes/Pico.html#method_loadPlugins"><span class="namespace-wrapper">\Pico::loadPlugins()</span></a></dd>
  1002. <dd><a href="../classes/Pico.html#method_getPlugins"><span class="namespace-wrapper">\Pico::getPlugins()</span></a></dd>
  1003. </dl>
  1004. <h2>Tags</h2>
  1005. <table class="table table-condensed">
  1006. <tr><td colspan="2"><em>None found</em></td></tr>
  1007. </table>
  1008. </aside>
  1009. </div>
  1010. <div class="row-fluid">
  1011. <div class="span8 content class">
  1012. <a id="method_getPlugins" name="method_getPlugins" class="anchor"></a>
  1013. <article class="method">
  1014. <h3 class="public ">getPlugins()</h3>
  1015. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1016. <pre class="signature" style="margin-right: 54px;">getPlugins() : array&lt;mixed,object&gt;|null</pre>
  1017. <p><em>Returns all loaded plugins</em></p>
  1018. <h4>Returns</h4>
  1019. array&lt;mixed,object&gt;|null
  1020. </article>
  1021. </div>
  1022. <aside class="span4 detailsbar">
  1023. <h1><i class="icon-arrow-down"></i></h1>
  1024. <dl>
  1025. <dt>See also</dt>
  1026. <dd><a href="../classes/Pico.html#method_loadPlugins"><span class="namespace-wrapper">\Pico::loadPlugins()</span></a></dd>
  1027. <dd><a href="../classes/Pico.html#method_getPlugin"><span class="namespace-wrapper">\Pico::getPlugin()</span></a></dd>
  1028. </dl>
  1029. <h2>Tags</h2>
  1030. <table class="table table-condensed">
  1031. <tr><td colspan="2"><em>None found</em></td></tr>
  1032. </table>
  1033. </aside>
  1034. </div>
  1035. <div class="row-fluid">
  1036. <div class="span8 content class">
  1037. <a id="method_setConfig" name="method_setConfig" class="anchor"></a>
  1038. <article class="method">
  1039. <h3 class="public ">setConfig()</h3>
  1040. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1041. <pre class="signature" style="margin-right: 54px;">setConfig(array&lt;mixed,mixed&gt; <span class="argument">$config</span>) : void</pre>
  1042. <p><em>Sets Picos config before calling Pico::run()</em></p>
  1043. <p>This method allows you to modify Picos config without creating a
  1044. {@path &quot;config/config.php&quot;} or changing some of its variables before
  1045. Pico starts processing.</p>
  1046. <p>You can call this method between <a href="/classes/Pico.html#method___construct">Pico::__construct()</a> and
  1047. <a href="/classes/Pico.html#method_run">Pico::run()</a> only. Options set with this method cannot be
  1048. overwritten by {@path &quot;config/config.php&quot;}.</p>
  1049. <h4>Parameters</h4>
  1050. <table class="table table-condensed table-hover">
  1051. <tr>
  1052. <td>array&lt;mixed,mixed&gt;</td>
  1053. <td>$config </td>
  1054. <td><p>array with config variables</p></td>
  1055. </tr>
  1056. </table>
  1057. <h4>Throws</h4>
  1058. <dl>
  1059. <dt>\RuntimeException</dt>
  1060. <dd><p>thrown if Pico already started processing</p></dd>
  1061. </dl>
  1062. </article>
  1063. </div>
  1064. <aside class="span4 detailsbar">
  1065. <h1><i class="icon-arrow-down"></i></h1>
  1066. <dl>
  1067. <dt>See also</dt>
  1068. <dd><a href="../classes/Pico.html#method_loadConfig"><span class="namespace-wrapper">\Pico::loadConfig()</span></a></dd>
  1069. <dd><a href="../classes/Pico.html#method_getConfig"><span class="namespace-wrapper">\Pico::getConfig()</span></a></dd>
  1070. </dl>
  1071. <h2>Tags</h2>
  1072. <table class="table table-condensed">
  1073. <tr><td colspan="2"><em>None found</em></td></tr>
  1074. </table>
  1075. </aside>
  1076. </div>
  1077. <div class="row-fluid">
  1078. <div class="span8 content class">
  1079. <a id="method_getConfig" name="method_getConfig" class="anchor"></a>
  1080. <article class="method">
  1081. <h3 class="public ">getConfig()</h3>
  1082. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1083. <pre class="signature" style="margin-right: 54px;">getConfig(string <span class="argument">$configName = null</span>) : mixed</pre>
  1084. <p><em>Returns either the value of the specified config variable or
  1085. the config array</em></p>
  1086. <h4>Parameters</h4>
  1087. <table class="table table-condensed table-hover">
  1088. <tr>
  1089. <td>string</td>
  1090. <td>$configName </td>
  1091. <td><p>optional name of a config variable</p></td>
  1092. </tr>
  1093. </table>
  1094. <h4>Returns</h4>
  1095. mixed
  1096. &mdash; <p>returns either the value of the named config
  1097. variable, null if the config variable doesn't exist or the config
  1098. array if no config name was supplied</p>
  1099. </article>
  1100. </div>
  1101. <aside class="span4 detailsbar">
  1102. <h1><i class="icon-arrow-down"></i></h1>
  1103. <dl>
  1104. <dt>See also</dt>
  1105. <dd><a href="../classes/Pico.html#method_setConfig"><span class="namespace-wrapper">\Pico::setConfig()</span></a></dd>
  1106. <dd><a href="../classes/Pico.html#method_loadConfig"><span class="namespace-wrapper">\Pico::loadConfig()</span></a></dd>
  1107. </dl>
  1108. <h2>Tags</h2>
  1109. <table class="table table-condensed">
  1110. <tr><td colspan="2"><em>None found</em></td></tr>
  1111. </table>
  1112. </aside>
  1113. </div>
  1114. <div class="row-fluid">
  1115. <div class="span8 content class">
  1116. <a id="method_getRequestUrl" name="method_getRequestUrl" class="anchor"></a>
  1117. <article class="method">
  1118. <h3 class="public ">getRequestUrl()</h3>
  1119. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1120. <pre class="signature" style="margin-right: 54px;">getRequestUrl() : string|null</pre>
  1121. <p><em>Returns the URL where a user requested the page</em></p>
  1122. <h4>Returns</h4>
  1123. string|null
  1124. &mdash; <p>request URL</p>
  1125. </article>
  1126. </div>
  1127. <aside class="span4 detailsbar">
  1128. <h1><i class="icon-arrow-down"></i></h1>
  1129. <dl>
  1130. <dt>See also</dt>
  1131. <dd><a href="../classes/Pico.html#method_evaluateRequestUrl"><span class="namespace-wrapper">\Pico::evaluateRequestUrl()</span></a></dd>
  1132. </dl>
  1133. <h2>Tags</h2>
  1134. <table class="table table-condensed">
  1135. <tr><td colspan="2"><em>None found</em></td></tr>
  1136. </table>
  1137. </aside>
  1138. </div>
  1139. <div class="row-fluid">
  1140. <div class="span8 content class">
  1141. <a id="method_getRequestFile" name="method_getRequestFile" class="anchor"></a>
  1142. <article class="method">
  1143. <h3 class="public ">getRequestFile()</h3>
  1144. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1145. <pre class="signature" style="margin-right: 54px;">getRequestFile() : string|null</pre>
  1146. <p><em>Returns the absolute path to the content file to serve</em></p>
  1147. <h4>Returns</h4>
  1148. string|null
  1149. &mdash; <p>file path</p>
  1150. </article>
  1151. </div>
  1152. <aside class="span4 detailsbar">
  1153. <h1><i class="icon-arrow-down"></i></h1>
  1154. <dl>
  1155. <dt>See also</dt>
  1156. <dd><a href="../classes/Pico.html#method_discoverRequestFile"><span class="namespace-wrapper">\Pico::discoverRequestFile()</span></a></dd>
  1157. </dl>
  1158. <h2>Tags</h2>
  1159. <table class="table table-condensed">
  1160. <tr><td colspan="2"><em>None found</em></td></tr>
  1161. </table>
  1162. </aside>
  1163. </div>
  1164. <div class="row-fluid">
  1165. <div class="span8 content class">
  1166. <a id="method_loadFileContent" name="method_loadFileContent" class="anchor"></a>
  1167. <article class="method">
  1168. <h3 class="public ">loadFileContent()</h3>
  1169. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1170. <pre class="signature" style="margin-right: 54px;">loadFileContent(string <span class="argument">$file</span>) : string</pre>
  1171. <p><em>Returns the raw contents of a file</em></p>
  1172. <h4>Parameters</h4>
  1173. <table class="table table-condensed table-hover">
  1174. <tr>
  1175. <td>string</td>
  1176. <td>$file </td>
  1177. <td><p>file path</p></td>
  1178. </tr>
  1179. </table>
  1180. <h4>Returns</h4>
  1181. string
  1182. &mdash; <p>raw contents of the file</p>
  1183. </article>
  1184. </div>
  1185. <aside class="span4 detailsbar">
  1186. <h1><i class="icon-arrow-down"></i></h1>
  1187. <dl>
  1188. <dt>See also</dt>
  1189. <dd><a href="../classes/Pico.html#method_getRawContent"><span class="namespace-wrapper">\Pico::getRawContent()</span></a></dd>
  1190. </dl>
  1191. <h2>Tags</h2>
  1192. <table class="table table-condensed">
  1193. <tr><td colspan="2"><em>None found</em></td></tr>
  1194. </table>
  1195. </aside>
  1196. </div>
  1197. <div class="row-fluid">
  1198. <div class="span8 content class">
  1199. <a id="method_load404Content" name="method_load404Content" class="anchor"></a>
  1200. <article class="method">
  1201. <h3 class="public ">load404Content()</h3>
  1202. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1203. <pre class="signature" style="margin-right: 54px;">load404Content(string <span class="argument">$file</span>) : string</pre>
  1204. <p><em>Returns the raw contents of the first found 404 file when traversing
  1205. up from the directory the requested file is in</em></p>
  1206. <h4>Parameters</h4>
  1207. <table class="table table-condensed table-hover">
  1208. <tr>
  1209. <td>string</td>
  1210. <td>$file </td>
  1211. <td><p>path to requested (but not existing) file</p></td>
  1212. </tr>
  1213. </table>
  1214. <h4>Throws</h4>
  1215. <dl>
  1216. <dt>\RuntimeException</dt>
  1217. <dd><p>thrown when no suitable 404 file is found</p></dd>
  1218. </dl>
  1219. <h4>Returns</h4>
  1220. string
  1221. &mdash; <p>raw contents of the 404 file</p>
  1222. </article>
  1223. </div>
  1224. <aside class="span4 detailsbar">
  1225. <h1><i class="icon-arrow-down"></i></h1>
  1226. <dl>
  1227. <dt>See also</dt>
  1228. <dd><a href="../classes/Pico.html#method_getRawContent"><span class="namespace-wrapper">\Pico::getRawContent()</span></a></dd>
  1229. </dl>
  1230. <h2>Tags</h2>
  1231. <table class="table table-condensed">
  1232. <tr><td colspan="2"><em>None found</em></td></tr>
  1233. </table>
  1234. </aside>
  1235. </div>
  1236. <div class="row-fluid">
  1237. <div class="span8 content class">
  1238. <a id="method_getRawContent" name="method_getRawContent" class="anchor"></a>
  1239. <article class="method">
  1240. <h3 class="public ">getRawContent()</h3>
  1241. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1242. <pre class="signature" style="margin-right: 54px;">getRawContent() : string|null</pre>
  1243. <p><em>Returns the raw contents, either of the requested or the 404 file</em></p>
  1244. <h4>Returns</h4>
  1245. string|null
  1246. &mdash; <p>raw contents</p>
  1247. </article>
  1248. </div>
  1249. <aside class="span4 detailsbar">
  1250. <h1><i class="icon-arrow-down"></i></h1>
  1251. <dl>
  1252. <dt>See also</dt>
  1253. <dd><a href="../classes/Pico.html#method_loadFileContent"><span class="namespace-wrapper">\Pico::loadFileContent()</span></a></dd>
  1254. <dd><a href="../classes/Pico.html#method_load404Content"><span class="namespace-wrapper">\Pico::load404Content()</span></a></dd>
  1255. </dl>
  1256. <h2>Tags</h2>
  1257. <table class="table table-condensed">
  1258. <tr><td colspan="2"><em>None found</em></td></tr>
  1259. </table>
  1260. </aside>
  1261. </div>
  1262. <div class="row-fluid">
  1263. <div class="span8 content class">
  1264. <a id="method_getMetaHeaders" name="method_getMetaHeaders" class="anchor"></a>
  1265. <article class="method">
  1266. <h3 class="public ">getMetaHeaders()</h3>
  1267. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1268. <pre class="signature" style="margin-right: 54px;">getMetaHeaders() : array&lt;mixed,string&gt;</pre>
  1269. <p><em>Returns known meta headers and triggers the onMetaHeaders event</em></p>
  1270. <p>Heads up! Calling this method triggers the <code>onMetaHeaders</code> event.
  1271. Keep this in mind to prevent a infinite loop!</p>
  1272. <h4>Returns</h4>
  1273. array&lt;mixed,string&gt;
  1274. &mdash; <p>known meta headers; the array value specifies the
  1275. YAML key to search for, the array key is later used to access the
  1276. found value</p>
  1277. </article>
  1278. </div>
  1279. <aside class="span4 detailsbar">
  1280. <h1><i class="icon-arrow-down"></i></h1>
  1281. <dl>
  1282. </dl>
  1283. <h2>Tags</h2>
  1284. <table class="table table-condensed">
  1285. <tr><td colspan="2"><em>None found</em></td></tr>
  1286. </table>
  1287. </aside>
  1288. </div>
  1289. <div class="row-fluid">
  1290. <div class="span8 content class">
  1291. <a id="method_parseFileMeta" name="method_parseFileMeta" class="anchor"></a>
  1292. <article class="method">
  1293. <h3 class="public ">parseFileMeta()</h3>
  1294. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1295. <pre class="signature" style="margin-right: 54px;">parseFileMeta(string <span class="argument">$rawContent</span>, array&lt;mixed,string&gt; <span class="argument">$headers</span>) : array</pre>
  1296. <p><em>Parses the file meta from raw file contents</em></p>
  1297. <p>Meta data MUST start on the first line of the file, either opened and
  1298. closed by <code>---</code> or C-style block comments (deprecated). The headers are
  1299. parsed by the YAML component of the Symfony project, keys are lowered.
  1300. If you're a plugin developer, you MUST register new headers during the
  1301. <code>onMetaHeaders</code> event first. The implicit availability of headers is
  1302. for users and pure (!) theme developers ONLY.</p>
  1303. <h4>Parameters</h4>
  1304. <table class="table table-condensed table-hover">
  1305. <tr>
  1306. <td>string</td>
  1307. <td>$rawContent </td>
  1308. <td><p>the raw file contents</p></td>
  1309. </tr>
  1310. <tr>
  1311. <td>array&lt;mixed,string&gt;</td>
  1312. <td>$headers </td>
  1313. <td><p>known meta headers</p></td>
  1314. </tr>
  1315. </table>
  1316. <h4>Returns</h4>
  1317. array
  1318. &mdash; <p>parsed meta data</p>
  1319. </article>
  1320. </div>
  1321. <aside class="span4 detailsbar">
  1322. <h1><i class="icon-arrow-down"></i></h1>
  1323. <dl>
  1324. <dt>See also</dt>
  1325. <dd><a href="../classes/Pico.html#method_getFileMeta"><span class="namespace-wrapper">\Pico::getFileMeta()</span></a></dd>
  1326. <dd><a href=""><span class="namespace-wrapper">\&lt;http://symfony.com/doc/current/components/yaml/introduction.html&gt;</span></a></dd>
  1327. </dl>
  1328. <h2>Tags</h2>
  1329. <table class="table table-condensed">
  1330. <tr><td colspan="2"><em>None found</em></td></tr>
  1331. </table>
  1332. </aside>
  1333. </div>
  1334. <div class="row-fluid">
  1335. <div class="span8 content class">
  1336. <a id="method_getFileMeta" name="method_getFileMeta" class="anchor"></a>
  1337. <article class="method">
  1338. <h3 class="public ">getFileMeta()</h3>
  1339. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1340. <pre class="signature" style="margin-right: 54px;">getFileMeta() : array|null</pre>
  1341. <p><em>Returns the parsed meta data of the requested page</em></p>
  1342. <h4>Returns</h4>
  1343. array|null
  1344. &mdash; <p>parsed meta data</p>
  1345. </article>
  1346. </div>
  1347. <aside class="span4 detailsbar">
  1348. <h1><i class="icon-arrow-down"></i></h1>
  1349. <dl>
  1350. <dt>See also</dt>
  1351. <dd><a href="../classes/Pico.html#method_parseFileMeta"><span class="namespace-wrapper">\Pico::parseFileMeta()</span></a></dd>
  1352. </dl>
  1353. <h2>Tags</h2>
  1354. <table class="table table-condensed">
  1355. <tr><td colspan="2"><em>None found</em></td></tr>
  1356. </table>
  1357. </aside>
  1358. </div>
  1359. <div class="row-fluid">
  1360. <div class="span8 content class">
  1361. <a id="method_prepareFileContent" name="method_prepareFileContent" class="anchor"></a>
  1362. <article class="method">
  1363. <h3 class="public ">prepareFileContent()</h3>
  1364. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1365. <pre class="signature" style="margin-right: 54px;">prepareFileContent(string <span class="argument">$rawContent</span>) : string</pre>
  1366. <p><em>Applies some static preparations to the raw contents of a page,
  1367. e.g. removing the meta header and replacing %base_url%</em></p>
  1368. <h4>Parameters</h4>
  1369. <table class="table table-condensed table-hover">
  1370. <tr>
  1371. <td>string</td>
  1372. <td>$rawContent </td>
  1373. <td><p>raw contents of a page</p></td>
  1374. </tr>
  1375. </table>
  1376. <h4>Returns</h4>
  1377. string
  1378. &mdash; <p>contents prepared for parsing</p>
  1379. </article>
  1380. </div>
  1381. <aside class="span4 detailsbar">
  1382. <h1><i class="icon-arrow-down"></i></h1>
  1383. <dl>
  1384. <dt>See also</dt>
  1385. <dd><a href="../classes/Pico.html#method_parseFileContent"><span class="namespace-wrapper">\Pico::parseFileContent()</span></a></dd>
  1386. <dd><a href="../classes/Pico.html#method_getFileContent"><span class="namespace-wrapper">\Pico::getFileContent()</span></a></dd>
  1387. </dl>
  1388. <h2>Tags</h2>
  1389. <table class="table table-condensed">
  1390. <tr><td colspan="2"><em>None found</em></td></tr>
  1391. </table>
  1392. </aside>
  1393. </div>
  1394. <div class="row-fluid">
  1395. <div class="span8 content class">
  1396. <a id="method_parseFileContent" name="method_parseFileContent" class="anchor"></a>
  1397. <article class="method">
  1398. <h3 class="public ">parseFileContent()</h3>
  1399. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1400. <pre class="signature" style="margin-right: 54px;">parseFileContent(string <span class="argument">$content</span>) : string</pre>
  1401. <p><em>Parses the contents of a page using ParsedownExtra</em></p>
  1402. <h4>Parameters</h4>
  1403. <table class="table table-condensed table-hover">
  1404. <tr>
  1405. <td>string</td>
  1406. <td>$content </td>
  1407. <td><p>raw contents of a page (Markdown)</p></td>
  1408. </tr>
  1409. </table>
  1410. <h4>Returns</h4>
  1411. string
  1412. &mdash; <p>parsed contents (HTML)</p>
  1413. </article>
  1414. </div>
  1415. <aside class="span4 detailsbar">
  1416. <h1><i class="icon-arrow-down"></i></h1>
  1417. <dl>
  1418. <dt>See also</dt>
  1419. <dd><a href="../classes/Pico.html#method_prepareFileContent"><span class="namespace-wrapper">\Pico::prepareFileContent()</span></a></dd>
  1420. <dd><a href="../classes/Pico.html#method_getFileContent"><span class="namespace-wrapper">\Pico::getFileContent()</span></a></dd>
  1421. </dl>
  1422. <h2>Tags</h2>
  1423. <table class="table table-condensed">
  1424. <tr><td colspan="2"><em>None found</em></td></tr>
  1425. </table>
  1426. </aside>
  1427. </div>
  1428. <div class="row-fluid">
  1429. <div class="span8 content class">
  1430. <a id="method_getFileContent" name="method_getFileContent" class="anchor"></a>
  1431. <article class="method">
  1432. <h3 class="public ">getFileContent()</h3>
  1433. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1434. <pre class="signature" style="margin-right: 54px;">getFileContent() : string|null</pre>
  1435. <p><em>Returns the cached contents of the requested page</em></p>
  1436. <h4>Returns</h4>
  1437. string|null
  1438. &mdash; <p>parsed contents</p>
  1439. </article>
  1440. </div>
  1441. <aside class="span4 detailsbar">
  1442. <h1><i class="icon-arrow-down"></i></h1>
  1443. <dl>
  1444. <dt>See also</dt>
  1445. <dd><a href="../classes/Pico.html#method_prepareFileContent"><span class="namespace-wrapper">\Pico::prepareFileContent()</span></a></dd>
  1446. <dd><a href="../classes/Pico.html#method_parseFileContent"><span class="namespace-wrapper">\Pico::parseFileContent()</span></a></dd>
  1447. </dl>
  1448. <h2>Tags</h2>
  1449. <table class="table table-condensed">
  1450. <tr><td colspan="2"><em>None found</em></td></tr>
  1451. </table>
  1452. </aside>
  1453. </div>
  1454. <div class="row-fluid">
  1455. <div class="span8 content class">
  1456. <a id="method_getPages" name="method_getPages" class="anchor"></a>
  1457. <article class="method">
  1458. <h3 class="public ">getPages()</h3>
  1459. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1460. <pre class="signature" style="margin-right: 54px;">getPages() : array|null</pre>
  1461. <p><em>Returns the list of known pages</em></p>
  1462. <h4>Returns</h4>
  1463. array|null
  1464. &mdash; <p>the data of all pages</p>
  1465. </article>
  1466. </div>
  1467. <aside class="span4 detailsbar">
  1468. <h1><i class="icon-arrow-down"></i></h1>
  1469. <dl>
  1470. <dt>See also</dt>
  1471. <dd><a href="../classes/Pico.html#method_readPages"><span class="namespace-wrapper">\Pico::readPages()</span></a></dd>
  1472. <dd><a href="../classes/Pico.html#method_sortPages"><span class="namespace-wrapper">\Pico::sortPages()</span></a></dd>
  1473. </dl>
  1474. <h2>Tags</h2>
  1475. <table class="table table-condensed">
  1476. <tr><td colspan="2"><em>None found</em></td></tr>
  1477. </table>
  1478. </aside>
  1479. </div>
  1480. <div class="row-fluid">
  1481. <div class="span8 content class">
  1482. <a id="method_getCurrentPage" name="method_getCurrentPage" class="anchor"></a>
  1483. <article class="method">
  1484. <h3 class="public ">getCurrentPage()</h3>
  1485. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1486. <pre class="signature" style="margin-right: 54px;">getCurrentPage() : array|null</pre>
  1487. <p><em>Returns the data of the requested page</em></p>
  1488. <h4>Returns</h4>
  1489. array|null
  1490. &mdash; <p>page data</p>
  1491. </article>
  1492. </div>
  1493. <aside class="span4 detailsbar">
  1494. <h1><i class="icon-arrow-down"></i></h1>
  1495. <dl>
  1496. <dt>See also</dt>
  1497. <dd><a href="../classes/Pico.html#method_discoverCurrentPage"><span class="namespace-wrapper">\Pico::discoverCurrentPage()</span></a></dd>
  1498. </dl>
  1499. <h2>Tags</h2>
  1500. <table class="table table-condensed">
  1501. <tr><td colspan="2"><em>None found</em></td></tr>
  1502. </table>
  1503. </aside>
  1504. </div>
  1505. <div class="row-fluid">
  1506. <div class="span8 content class">
  1507. <a id="method_getPreviousPage" name="method_getPreviousPage" class="anchor"></a>
  1508. <article class="method">
  1509. <h3 class="public ">getPreviousPage()</h3>
  1510. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1511. <pre class="signature" style="margin-right: 54px;">getPreviousPage() : array|null</pre>
  1512. <p><em>Returns the data of the previous page relative to the page being served</em></p>
  1513. <h4>Returns</h4>
  1514. array|null
  1515. &mdash; <p>page data</p>
  1516. </article>
  1517. </div>
  1518. <aside class="span4 detailsbar">
  1519. <h1><i class="icon-arrow-down"></i></h1>
  1520. <dl>
  1521. <dt>See also</dt>
  1522. <dd><a href="../classes/Pico.html#method_discoverCurrentPage"><span class="namespace-wrapper">\Pico::discoverCurrentPage()</span></a></dd>
  1523. </dl>
  1524. <h2>Tags</h2>
  1525. <table class="table table-condensed">
  1526. <tr><td colspan="2"><em>None found</em></td></tr>
  1527. </table>
  1528. </aside>
  1529. </div>
  1530. <div class="row-fluid">
  1531. <div class="span8 content class">
  1532. <a id="method_getNextPage" name="method_getNextPage" class="anchor"></a>
  1533. <article class="method">
  1534. <h3 class="public ">getNextPage()</h3>
  1535. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1536. <pre class="signature" style="margin-right: 54px;">getNextPage() : array|null</pre>
  1537. <p><em>Returns the data of the next page relative to the page being served</em></p>
  1538. <h4>Returns</h4>
  1539. array|null
  1540. &mdash; <p>page data</p>
  1541. </article>
  1542. </div>
  1543. <aside class="span4 detailsbar">
  1544. <h1><i class="icon-arrow-down"></i></h1>
  1545. <dl>
  1546. <dt>See also</dt>
  1547. <dd><a href="../classes/Pico.html#method_discoverCurrentPage"><span class="namespace-wrapper">\Pico::discoverCurrentPage()</span></a></dd>
  1548. </dl>
  1549. <h2>Tags</h2>
  1550. <table class="table table-condensed">
  1551. <tr><td colspan="2"><em>None found</em></td></tr>
  1552. </table>
  1553. </aside>
  1554. </div>
  1555. <div class="row-fluid">
  1556. <div class="span8 content class">
  1557. <a id="method_getTwig" name="method_getTwig" class="anchor"></a>
  1558. <article class="method">
  1559. <h3 class="public ">getTwig()</h3>
  1560. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1561. <pre class="signature" style="margin-right: 54px;">getTwig() : \Twig_Environment|null</pre>
  1562. <p><em>Returns the twig template engine</em></p>
  1563. <h4>Returns</h4>
  1564. \Twig_Environment|null
  1565. &mdash; <p>twig template engine</p>
  1566. </article>
  1567. </div>
  1568. <aside class="span4 detailsbar">
  1569. <h1><i class="icon-arrow-down"></i></h1>
  1570. <dl>
  1571. <dt>See also</dt>
  1572. <dd><a href="../classes/Pico.html#method_registerTwig"><span class="namespace-wrapper">\Pico::registerTwig()</span></a></dd>
  1573. </dl>
  1574. <h2>Tags</h2>
  1575. <table class="table table-condensed">
  1576. <tr><td colspan="2"><em>None found</em></td></tr>
  1577. </table>
  1578. </aside>
  1579. </div>
  1580. <div class="row-fluid">
  1581. <div class="span8 content class">
  1582. <a id="method_getBaseUrl" name="method_getBaseUrl" class="anchor"></a>
  1583. <article class="method">
  1584. <h3 class="public ">getBaseUrl()</h3>
  1585. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1586. <pre class="signature" style="margin-right: 54px;">getBaseUrl() : string</pre>
  1587. <p><em>Returns the base URL of this Pico instance</em></p>
  1588. <h4>Returns</h4>
  1589. string
  1590. &mdash; <p>the base url</p>
  1591. </article>
  1592. </div>
  1593. <aside class="span4 detailsbar">
  1594. <h1><i class="icon-arrow-down"></i></h1>
  1595. <dl>
  1596. </dl>
  1597. <h2>Tags</h2>
  1598. <table class="table table-condensed">
  1599. <tr><td colspan="2"><em>None found</em></td></tr>
  1600. </table>
  1601. </aside>
  1602. </div>
  1603. <div class="row-fluid">
  1604. <div class="span8 content class">
  1605. <a id="method_isUrlRewritingEnabled" name="method_isUrlRewritingEnabled" class="anchor"></a>
  1606. <article class="method">
  1607. <h3 class="public ">isUrlRewritingEnabled()</h3>
  1608. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1609. <pre class="signature" style="margin-right: 54px;">isUrlRewritingEnabled() : boolean</pre>
  1610. <p><em>Returns true if URL rewriting is enabled</em></p>
  1611. <h4>Returns</h4>
  1612. boolean
  1613. &mdash; <p>true if URL rewriting is enabled, false otherwise</p>
  1614. </article>
  1615. </div>
  1616. <aside class="span4 detailsbar">
  1617. <h1><i class="icon-arrow-down"></i></h1>
  1618. <dl>
  1619. </dl>
  1620. <h2>Tags</h2>
  1621. <table class="table table-condensed">
  1622. <tr><td colspan="2"><em>None found</em></td></tr>
  1623. </table>
  1624. </aside>
  1625. </div>
  1626. <div class="row-fluid">
  1627. <div class="span8 content class">
  1628. <a id="method_getPageUrl" name="method_getPageUrl" class="anchor"></a>
  1629. <article class="method">
  1630. <h3 class="public ">getPageUrl()</h3>
  1631. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1632. <pre class="signature" style="margin-right: 54px;">getPageUrl(string <span class="argument">$page</span>) : string</pre>
  1633. <p><em>Returns the URL to a given page</em></p>
  1634. <h4>Parameters</h4>
  1635. <table class="table table-condensed table-hover">
  1636. <tr>
  1637. <td>string</td>
  1638. <td>$page </td>
  1639. <td><p>identifier of the page to link to</p></td>
  1640. </tr>
  1641. </table>
  1642. <h4>Returns</h4>
  1643. string
  1644. &mdash; <p>URL</p>
  1645. </article>
  1646. </div>
  1647. <aside class="span4 detailsbar">
  1648. <h1><i class="icon-arrow-down"></i></h1>
  1649. <dl>
  1650. </dl>
  1651. <h2>Tags</h2>
  1652. <table class="table table-condensed">
  1653. <tr><td colspan="2"><em>None found</em></td></tr>
  1654. </table>
  1655. </aside>
  1656. </div>
  1657. <div class="row-fluid">
  1658. <div class="span8 content class">
  1659. <a id="method_loadPlugins" name="method_loadPlugins" class="anchor"></a>
  1660. <article class="method">
  1661. <h3 class="protected ">loadPlugins()</h3>
  1662. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1663. <pre class="signature" style="margin-right: 54px;">loadPlugins() : void</pre>
  1664. <p><em>Loads plugins from Pico::$pluginsDir in alphabetical order</em></p>
  1665. <p>Plugin files may be prefixed by a number (e.g. 00-PicoDeprecated.php)
  1666. to indicate their processing order. You MUST NOT use prefixes between
  1667. 00 and 19 (reserved for built-in plugins).</p>
  1668. <h4>Throws</h4>
  1669. <dl>
  1670. <dt>\RuntimeException</dt>
  1671. <dd><p>thrown when a plugin couldn't be loaded</p></dd>
  1672. </dl>
  1673. </article>
  1674. </div>
  1675. <aside class="span4 detailsbar">
  1676. <h1><i class="icon-arrow-down"></i></h1>
  1677. <dl>
  1678. <dt>See also</dt>
  1679. <dd><a href="../classes/Pico.html#method_getPlugin"><span class="namespace-wrapper">\Pico::getPlugin()</span></a></dd>
  1680. <dd><a href="../classes/Pico.html#method_getPlugins"><span class="namespace-wrapper">\Pico::getPlugins()</span></a></dd>
  1681. </dl>
  1682. <h2>Tags</h2>
  1683. <table class="table table-condensed">
  1684. <tr><td colspan="2"><em>None found</em></td></tr>
  1685. </table>
  1686. </aside>
  1687. </div>
  1688. <div class="row-fluid">
  1689. <div class="span8 content class">
  1690. <a id="method_loadConfig" name="method_loadConfig" class="anchor"></a>
  1691. <article class="method">
  1692. <h3 class="protected ">loadConfig()</h3>
  1693. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1694. <pre class="signature" style="margin-right: 54px;">loadConfig() : void</pre>
  1695. <p><em>Loads the config.php from Pico::$configDir</em></p>
  1696. </article>
  1697. </div>
  1698. <aside class="span4 detailsbar">
  1699. <h1><i class="icon-arrow-down"></i></h1>
  1700. <dl>
  1701. <dt>See also</dt>
  1702. <dd><a href="../classes/Pico.html#method_setConfig"><span class="namespace-wrapper">\Pico::setConfig()</span></a></dd>
  1703. <dd><a href="../classes/Pico.html#method_getConfig"><span class="namespace-wrapper">\Pico::getConfig()</span></a></dd>
  1704. </dl>
  1705. <h2>Tags</h2>
  1706. <table class="table table-condensed">
  1707. <tr><td colspan="2"><em>None found</em></td></tr>
  1708. </table>
  1709. </aside>
  1710. </div>
  1711. <div class="row-fluid">
  1712. <div class="span8 content class">
  1713. <a id="method_evaluateRequestUrl" name="method_evaluateRequestUrl" class="anchor"></a>
  1714. <article class="method">
  1715. <h3 class="protected ">evaluateRequestUrl()</h3>
  1716. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1717. <pre class="signature" style="margin-right: 54px;">evaluateRequestUrl() : void</pre>
  1718. <p><em>Evaluates the requested URL</em></p>
  1719. <p>Pico 1.0 uses the <code>QUERY_STRING</code> routing method (e.g. <code>/pico/?sub/page</code>)
  1720. to support SEO-like URLs out-of-the-box with any webserver. You can
  1721. still setup URL rewriting (e.g. using <code>mod_rewrite</code> on Apache) to
  1722. basically remove the <code>?</code> from URLs, but your rewritten URLs must follow
  1723. the new <code>QUERY_STRING</code> principles. URL rewriting requires some special
  1724. configuration on your webserver, but this should be &quot;basic work&quot; for
  1725. any webmaster...</p>
  1726. <p>Pico 0.9 and older required Apache with <code>mod_rewrite</code> enabled, thus old
  1727. plugins, templates and contents may require you to enable URL rewriting
  1728. to work. If you're upgrading from Pico 0.9, you will probably have to
  1729. update your rewriting rules.</p>
  1730. <p>We recommend you to use the <code>link</code> filter in templates to create
  1731. internal links, e.g. <code>{{ "sub/page"|link }}</code> is equivalent to
  1732. <code>{{ base_url }}sub/page</code>. In content files you can still use the
  1733. <code>%base_url%</code> variable; e.g. <code>%base_url%?sub/page</code> will be automatically
  1734. replaced accordingly.</p>
  1735. </article>
  1736. </div>
  1737. <aside class="span4 detailsbar">
  1738. <h1><i class="icon-arrow-down"></i></h1>
  1739. <dl>
  1740. <dt>See also</dt>
  1741. <dd><a href="../classes/Pico.html#method_getRequestUrl"><span class="namespace-wrapper">\Pico::getRequestUrl()</span></a></dd>
  1742. </dl>
  1743. <h2>Tags</h2>
  1744. <table class="table table-condensed">
  1745. <tr><td colspan="2"><em>None found</em></td></tr>
  1746. </table>
  1747. </aside>
  1748. </div>
  1749. <div class="row-fluid">
  1750. <div class="span8 content class">
  1751. <a id="method_discoverRequestFile" name="method_discoverRequestFile" class="anchor"></a>
  1752. <article class="method">
  1753. <h3 class="protected ">discoverRequestFile()</h3>
  1754. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1755. <pre class="signature" style="margin-right: 54px;">discoverRequestFile() : void</pre>
  1756. <p><em>Uses the request URL to discover the content file to serve</em></p>
  1757. </article>
  1758. </div>
  1759. <aside class="span4 detailsbar">
  1760. <h1><i class="icon-arrow-down"></i></h1>
  1761. <dl>
  1762. <dt>See also</dt>
  1763. <dd><a href="../classes/Pico.html#method_getRequestFile"><span class="namespace-wrapper">\Pico::getRequestFile()</span></a></dd>
  1764. </dl>
  1765. <h2>Tags</h2>
  1766. <table class="table table-condensed">
  1767. <tr><td colspan="2"><em>None found</em></td></tr>
  1768. </table>
  1769. </aside>
  1770. </div>
  1771. <div class="row-fluid">
  1772. <div class="span8 content class">
  1773. <a id="method_readPages" name="method_readPages" class="anchor"></a>
  1774. <article class="method">
  1775. <h3 class="protected ">readPages()</h3>
  1776. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1777. <pre class="signature" style="margin-right: 54px;">readPages() : void</pre>
  1778. <p><em>Reads the data of all pages known to Pico</em></p>
  1779. <p>The page data will be an array containing the following values:</p>
  1780. <pre>
  1781. +----------------+--------+------------------------------------------+
  1782. | Array key | Type | Description |
  1783. +----------------+--------+------------------------------------------+
  1784. | id | string | relative path to the content file |
  1785. | url | string | URL to the page |
  1786. | title | string | title of the page (YAML header) |
  1787. | description | string | description of the page (YAML header) |
  1788. | author | string | author of the page (YAML header) |
  1789. | time | string | timestamp derived from the Date header |
  1790. | date | string | date of the page (YAML header) |
  1791. | date_formatted | string | formatted date of the page |
  1792. | raw_content | string | raw, not yet parsed contents of the page |
  1793. | meta | string | parsed meta data of the page |
  1794. +----------------+--------+------------------------------------------+
  1795. </pre>
  1796. </article>
  1797. </div>
  1798. <aside class="span4 detailsbar">
  1799. <h1><i class="icon-arrow-down"></i></h1>
  1800. <dl>
  1801. <dt>See also</dt>
  1802. <dd><a href="../classes/Pico.html#method_sortPages"><span class="namespace-wrapper">\Pico::sortPages()</span></a></dd>
  1803. <dd><a href="../classes/Pico.html#method_getPages"><span class="namespace-wrapper">\Pico::getPages()</span></a></dd>
  1804. </dl>
  1805. <h2>Tags</h2>
  1806. <table class="table table-condensed">
  1807. <tr><td colspan="2"><em>None found</em></td></tr>
  1808. </table>
  1809. </aside>
  1810. </div>
  1811. <div class="row-fluid">
  1812. <div class="span8 content class">
  1813. <a id="method_sortPages" name="method_sortPages" class="anchor"></a>
  1814. <article class="method">
  1815. <h3 class="protected ">sortPages()</h3>
  1816. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1817. <pre class="signature" style="margin-right: 54px;">sortPages() : void</pre>
  1818. <p><em>Sorts all pages known to Pico</em></p>
  1819. </article>
  1820. </div>
  1821. <aside class="span4 detailsbar">
  1822. <h1><i class="icon-arrow-down"></i></h1>
  1823. <dl>
  1824. <dt>See also</dt>
  1825. <dd><a href="../classes/Pico.html#method_readPages"><span class="namespace-wrapper">\Pico::readPages()</span></a></dd>
  1826. <dd><a href="../classes/Pico.html#method_getPages"><span class="namespace-wrapper">\Pico::getPages()</span></a></dd>
  1827. </dl>
  1828. <h2>Tags</h2>
  1829. <table class="table table-condensed">
  1830. <tr><td colspan="2"><em>None found</em></td></tr>
  1831. </table>
  1832. </aside>
  1833. </div>
  1834. <div class="row-fluid">
  1835. <div class="span8 content class">
  1836. <a id="method_discoverCurrentPage" name="method_discoverCurrentPage" class="anchor"></a>
  1837. <article class="method">
  1838. <h3 class="protected ">discoverCurrentPage()</h3>
  1839. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1840. <pre class="signature" style="margin-right: 54px;">discoverCurrentPage() : void</pre>
  1841. <p><em>Walks through the list of known pages and discovers the requested page
  1842. as well as the previous and next page relative to it</em></p>
  1843. </article>
  1844. </div>
  1845. <aside class="span4 detailsbar">
  1846. <h1><i class="icon-arrow-down"></i></h1>
  1847. <dl>
  1848. <dt>See also</dt>
  1849. <dd><a href="../classes/Pico.html#method_getCurrentPage"><span class="namespace-wrapper">\Pico::getCurrentPage()</span></a></dd>
  1850. <dd><a href="../classes/Pico.html#method_getPreviousPage"><span class="namespace-wrapper">\Pico::getPreviousPage()</span></a></dd>
  1851. <dd><a href="../classes/Pico.html#method_getNextPage"><span class="namespace-wrapper">\Pico::getNextPage()</span></a></dd>
  1852. </dl>
  1853. <h2>Tags</h2>
  1854. <table class="table table-condensed">
  1855. <tr><td colspan="2"><em>None found</em></td></tr>
  1856. </table>
  1857. </aside>
  1858. </div>
  1859. <div class="row-fluid">
  1860. <div class="span8 content class">
  1861. <a id="method_registerTwig" name="method_registerTwig" class="anchor"></a>
  1862. <article class="method">
  1863. <h3 class="protected ">registerTwig()</h3>
  1864. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1865. <pre class="signature" style="margin-right: 54px;">registerTwig() : void</pre>
  1866. <p><em>Registers the twig template engine</em></p>
  1867. </article>
  1868. </div>
  1869. <aside class="span4 detailsbar">
  1870. <h1><i class="icon-arrow-down"></i></h1>
  1871. <dl>
  1872. <dt>See also</dt>
  1873. <dd><a href="../classes/Pico.html#method_getTwig"><span class="namespace-wrapper">\Pico::getTwig()</span></a></dd>
  1874. </dl>
  1875. <h2>Tags</h2>
  1876. <table class="table table-condensed">
  1877. <tr><td colspan="2"><em>None found</em></td></tr>
  1878. </table>
  1879. </aside>
  1880. </div>
  1881. <div class="row-fluid">
  1882. <div class="span8 content class">
  1883. <a id="method_getTwigVariables" name="method_getTwigVariables" class="anchor"></a>
  1884. <article class="method">
  1885. <h3 class="protected ">getTwigVariables()</h3>
  1886. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1887. <pre class="signature" style="margin-right: 54px;">getTwigVariables() : array&lt;mixed,mixed&gt;</pre>
  1888. <p><em>Returns the variables passed to the template</em></p>
  1889. <p>URLs and paths (namely <code>base_dir</code>, <code>base_url</code>, <code>theme_dir</code> and
  1890. <code>theme_url</code>) don't add a trailing slash for historic reasons.</p>
  1891. <h4>Returns</h4>
  1892. array&lt;mixed,mixed&gt;
  1893. &mdash; <p>template variables</p>
  1894. </article>
  1895. </div>
  1896. <aside class="span4 detailsbar">
  1897. <h1><i class="icon-arrow-down"></i></h1>
  1898. <dl>
  1899. </dl>
  1900. <h2>Tags</h2>
  1901. <table class="table table-condensed">
  1902. <tr><td colspan="2"><em>None found</em></td></tr>
  1903. </table>
  1904. </aside>
  1905. </div>
  1906. <div class="row-fluid">
  1907. <div class="span8 content class">
  1908. <a id="method_getFiles" name="method_getFiles" class="anchor"></a>
  1909. <article class="method">
  1910. <h3 class="protected ">getFiles()</h3>
  1911. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1912. <pre class="signature" style="margin-right: 54px;">getFiles(string <span class="argument">$directory</span>, string <span class="argument">$fileExtension = &#039;&#039;</span>, integer <span class="argument">$order = self::SORT_ASC</span>) : array</pre>
  1913. <p><em>Recursively walks through a directory and returns all containing files
  1914. matching the specified file extension</em></p>
  1915. <h4>Parameters</h4>
  1916. <table class="table table-condensed table-hover">
  1917. <tr>
  1918. <td>string</td>
  1919. <td>$directory </td>
  1920. <td><p>start directory</p></td>
  1921. </tr>
  1922. <tr>
  1923. <td>string</td>
  1924. <td>$fileExtension </td>
  1925. <td><p>return files with the given file extension
  1926. only (optional)</p></td>
  1927. </tr>
  1928. <tr>
  1929. <td>integer</td>
  1930. <td>$order </td>
  1931. <td><p>specify whether and how files should be
  1932. sorted; use Pico::SORT_ASC for a alphabetical ascending order (this
  1933. is the default behaviour), Pico::SORT_DESC for a descending order
  1934. or Pico::SORT_NONE to leave the result unsorted</p></td>
  1935. </tr>
  1936. </table>
  1937. <h4>Returns</h4>
  1938. array
  1939. &mdash; <p>list of found files</p>
  1940. </article>
  1941. </div>
  1942. <aside class="span4 detailsbar">
  1943. <h1><i class="icon-arrow-down"></i></h1>
  1944. <dl>
  1945. </dl>
  1946. <h2>Tags</h2>
  1947. <table class="table table-condensed">
  1948. <tr><td colspan="2"><em>None found</em></td></tr>
  1949. </table>
  1950. </aside>
  1951. </div>
  1952. <div class="row-fluid">
  1953. <div class="span8 content class">
  1954. <a id="method_getAbsolutePath" name="method_getAbsolutePath" class="anchor"></a>
  1955. <article class="method">
  1956. <h3 class="protected ">getAbsolutePath()</h3>
  1957. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1958. <pre class="signature" style="margin-right: 54px;">getAbsolutePath(string <span class="argument">$path</span>) : string</pre>
  1959. <p><em>Makes a relative path absolute to Picos root dir</em></p>
  1960. <p>This method also guarantees a trailing slash.</p>
  1961. <h4>Parameters</h4>
  1962. <table class="table table-condensed table-hover">
  1963. <tr>
  1964. <td>string</td>
  1965. <td>$path </td>
  1966. <td><p>relative or absolute path</p></td>
  1967. </tr>
  1968. </table>
  1969. <h4>Returns</h4>
  1970. string
  1971. &mdash; <p>absolute path</p>
  1972. </article>
  1973. </div>
  1974. <aside class="span4 detailsbar">
  1975. <h1><i class="icon-arrow-down"></i></h1>
  1976. <dl>
  1977. </dl>
  1978. <h2>Tags</h2>
  1979. <table class="table table-condensed">
  1980. <tr><td colspan="2"><em>None found</em></td></tr>
  1981. </table>
  1982. </aside>
  1983. </div>
  1984. <div class="row-fluid">
  1985. <div class="span8 content class">
  1986. <a id="method_triggerEvent" name="method_triggerEvent" class="anchor"></a>
  1987. <article class="method">
  1988. <h3 class="protected ">triggerEvent()</h3>
  1989. <a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
  1990. <pre class="signature" style="margin-right: 54px;">triggerEvent(string <span class="argument">$eventName</span>, array <span class="argument">$params = array()</span>) : void</pre>
  1991. <p><em>Triggers events on plugins which implement PicoPluginInterface</em></p>
  1992. <p>Deprecated events (as used by plugins not implementing
  1993. \IPocPlugin) are triggered by \PicoDeprecated.</p>
  1994. <h4>Parameters</h4>
  1995. <table class="table table-condensed table-hover">
  1996. <tr>
  1997. <td>string</td>
  1998. <td>$eventName </td>
  1999. <td><p>name of the event to trigger</p></td>
  2000. </tr>
  2001. <tr>
  2002. <td>array</td>
  2003. <td>$params </td>
  2004. <td><p>optional parameters to pass</p></td>
  2005. </tr>
  2006. </table>
  2007. </article>
  2008. </div>
  2009. <aside class="span4 detailsbar">
  2010. <h1><i class="icon-arrow-down"></i></h1>
  2011. <dl>
  2012. <dt>See also</dt>
  2013. <dd><a href="../classes/PicoPluginInterface.html"><span class="namespace-wrapper">\PicoPluginInterface</span></a></dd>
  2014. <dd><a href="../classes/AbstractPicoPlugin.html"><span class="namespace-wrapper">\AbstractPicoPlugin</span></a></dd>
  2015. <dd><a href="../classes/DummyPlugin.html"><span class="namespace-wrapper">\DummyPlugin</span></a></dd>
  2016. </dl>
  2017. <h2>Tags</h2>
  2018. <table class="table table-condensed">
  2019. <tr><td colspan="2"><em>None found</em></td></tr>
  2020. </table>
  2021. </aside>
  2022. </div>
  2023. </div>
  2024. </section>
  2025. <div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true">
  2026. <div class="modal-header">
  2027. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
  2028. <h3 id="source-view-label">Pico.php</h3>
  2029. </div>
  2030. <div class="modal-body">
  2031. <pre data-src="../files/lib/Pico.php.txt" class="language-php line-numbers"></pre>
  2032. </div>
  2033. </div>
  2034. <footer class="row-fluid">
  2035. <section class="span10 offset2">
  2036. <section class="row-fluid">
  2037. <section class="span10 offset1">
  2038. <section class="row-fluid footer-sections">
  2039. <section class="span4">
  2040. <h1><i class="icon-code"></i></h1>
  2041. <div>
  2042. <ul>
  2043. </ul>
  2044. </div>
  2045. </section>
  2046. <section class="span4">
  2047. <h1><i class="icon-bar-chart"></i></h1>
  2048. <div>
  2049. <ul>
  2050. <li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li>
  2051. </ul>
  2052. </div>
  2053. </section>
  2054. <section class="span4">
  2055. <h1><i class="icon-pushpin"></i></h1>
  2056. <div>
  2057. <ul>
  2058. <li><a href="../reports/errors.html">Errors</a></li>
  2059. <li><a href="../reports/markers.html">Markers</a></li>
  2060. </ul>
  2061. </div>
  2062. </section>
  2063. </section>
  2064. </section>
  2065. </section>
  2066. <section class="row-fluid">
  2067. <section class="span10 offset1">
  2068. <hr />
  2069. Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
  2070. on November 3rd, 2015 at 16:05.
  2071. </section>
  2072. </section>
  2073. </section>
  2074. </footer>
  2075. </div>
  2076. </body>
  2077. </html>