php-929657e0.js 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. import{g as r}from"./index-63ed8a66.js";function a($,p){for(var n=0;n<p.length;n++){const t=p[n];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in $)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty($,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}var s={exports:{}};(function($,p){ace.define("ace/snippets/php.snippets",["require","exports","module"],function(n,t,e){e.exports=`snippet ec
  2. echo \${1};
  3. snippet ns
  4. namespace \${1:Foo\\Bar\\Baz};
  5. \${2}
  6. snippet use
  7. use \${1:Foo\\Bar\\Baz};
  8. \${2}
  9. snippet c
  10. \${1:abstract }class \${2:$FILENAME}
  11. {
  12. \${3}
  13. }
  14. snippet i
  15. interface \${1:$FILENAME}
  16. {
  17. \${2}
  18. }
  19. snippet t.
  20. $this->\${1}
  21. snippet f
  22. function \${1:foo}(\${2:array }\${3:$bar})
  23. {
  24. \${4}
  25. }
  26. # method
  27. snippet m
  28. \${1:abstract }\${2:protected}\${3: static} function \${4:foo}(\${5:array }\${6:$bar})
  29. {
  30. \${7}
  31. }
  32. # setter method
  33. snippet sm
  34. /**
  35. * Sets the value of \${1:foo}
  36. *
  37. * @param \${2:$1} $$1 \${3:description}
  38. *
  39. * @return \${4:$FILENAME}
  40. */
  41. \${5:public} function set\${6:$2}(\${7:$2 }$$1)
  42. {
  43. $this->\${8:$1} = $$1;
  44. return $this;
  45. }\${9}
  46. # getter method
  47. snippet gm
  48. /**
  49. * Gets the value of \${1:foo}
  50. *
  51. * @return \${2:$1}
  52. */
  53. \${3:public} function get\${4:$2}()
  54. {
  55. return $this->\${5:$1};
  56. }\${6}
  57. #setter
  58. snippet $s
  59. \${1:$foo}->set\${2:Bar}(\${3});
  60. #getter
  61. snippet $g
  62. \${1:$foo}->get\${2:Bar}();
  63. # Tertiary conditional
  64. snippet =?:
  65. $\${1:foo} = \${2:true} ? \${3:a} : \${4};
  66. snippet ?:
  67. \${1:true} ? \${2:a} : \${3}
  68. snippet C
  69. $_COOKIE['\${1:variable}']\${2}
  70. snippet E
  71. $_ENV['\${1:variable}']\${2}
  72. snippet F
  73. $_FILES['\${1:variable}']\${2}
  74. snippet G
  75. $_GET['\${1:variable}']\${2}
  76. snippet P
  77. $_POST['\${1:variable}']\${2}
  78. snippet R
  79. $_REQUEST['\${1:variable}']\${2}
  80. snippet S
  81. $_SERVER['\${1:variable}']\${2}
  82. snippet SS
  83. $_SESSION['\${1:variable}']\${2}
  84. # the following are old ones
  85. snippet inc
  86. include '\${1:file}';\${2}
  87. snippet inc1
  88. include_once '\${1:file}';\${2}
  89. snippet req
  90. require '\${1:file}';\${2}
  91. snippet req1
  92. require_once '\${1:file}';\${2}
  93. # Start Docblock
  94. snippet /*
  95. /**
  96. * \${1}
  97. */
  98. # Class - post doc
  99. snippet doc_cp
  100. /**
  101. * \${1:undocumented class}
  102. *
  103. * @package \${2:default}
  104. * @subpackage \${3:default}
  105. * @author \${4:\`g:snips_author\`}
  106. */\${5}
  107. # Class Variable - post doc
  108. snippet doc_vp
  109. /**
  110. * \${1:undocumented class variable}
  111. *
  112. * @var \${2:string}
  113. */\${3}
  114. # Class Variable
  115. snippet doc_v
  116. /**
  117. * \${3:undocumented class variable}
  118. *
  119. * @var \${4:string}
  120. */
  121. \${1:var} $\${2};\${5}
  122. # Class
  123. snippet doc_c
  124. /**
  125. * \${3:undocumented class}
  126. *
  127. * @package \${4:default}
  128. * @subpackage \${5:default}
  129. * @author \${6:\`g:snips_author\`}
  130. */
  131. \${1:}class \${2:}
  132. {
  133. \${7}
  134. } // END $1class $2
  135. # Constant Definition - post doc
  136. snippet doc_dp
  137. /**
  138. * \${1:undocumented constant}
  139. */\${2}
  140. # Constant Definition
  141. snippet doc_d
  142. /**
  143. * \${3:undocumented constant}
  144. */
  145. define(\${1}, \${2});\${4}
  146. # Function - post doc
  147. snippet doc_fp
  148. /**
  149. * \${1:undocumented function}
  150. *
  151. * @return \${2:void}
  152. * @author \${3:\`g:snips_author\`}
  153. */\${4}
  154. # Function signature
  155. snippet doc_s
  156. /**
  157. * \${4:undocumented function}
  158. *
  159. * @return \${5:void}
  160. * @author \${6:\`g:snips_author\`}
  161. */
  162. \${1}function \${2}(\${3});\${7}
  163. # Function
  164. snippet doc_f
  165. /**
  166. * \${4:undocumented function}
  167. *
  168. * @return \${5:void}
  169. * @author \${6:\`g:snips_author\`}
  170. */
  171. \${1}function \${2}(\${3})
  172. {\${7}
  173. }
  174. # Header
  175. snippet doc_h
  176. /**
  177. * \${1}
  178. *
  179. * @author \${2:\`g:snips_author\`}
  180. * @version \${3:$Id$}
  181. * @copyright \${4:$2}, \`strftime('%d %B, %Y')\`
  182. * @package \${5:default}
  183. */
  184. # Interface
  185. snippet interface
  186. /**
  187. * \${2:undocumented class}
  188. *
  189. * @package \${3:default}
  190. * @author \${4:\`g:snips_author\`}
  191. */
  192. interface \${1:$FILENAME}
  193. {
  194. \${5}
  195. }
  196. # class ...
  197. snippet class
  198. /**
  199. * \${1}
  200. */
  201. class \${2:$FILENAME}
  202. {
  203. \${3}
  204. /**
  205. * \${4}
  206. */
  207. \${5:public} function \${6:__construct}(\${7:argument})
  208. {
  209. \${8:// code...}
  210. }
  211. }
  212. # define(...)
  213. snippet def
  214. define('\${1}'\${2});\${3}
  215. # defined(...)
  216. snippet def?
  217. \${1}defined('\${2}')\${3}
  218. snippet wh
  219. while (\${1:/* condition */}) {
  220. \${2:// code...}
  221. }
  222. # do ... while
  223. snippet do
  224. do {
  225. \${2:// code... }
  226. } while (\${1:/* condition */});
  227. snippet if
  228. if (\${1:/* condition */}) {
  229. \${2:// code...}
  230. }
  231. snippet ife
  232. if (\${1:/* condition */}) {
  233. \${2:// code...}
  234. } else {
  235. \${3:// code...}
  236. }
  237. \${4}
  238. snippet else
  239. else {
  240. \${1:// code...}
  241. }
  242. snippet elseif
  243. elseif (\${1:/* condition */}) {
  244. \${2:// code...}
  245. }
  246. snippet switch
  247. switch ($\${1:variable}) {
  248. case '\${2:value}':
  249. \${3:// code...}
  250. break;
  251. \${5}
  252. default:
  253. \${4:// code...}
  254. break;
  255. }
  256. snippet case
  257. case '\${1:value}':
  258. \${2:// code...}
  259. break;\${3}
  260. snippet for
  261. for ($\${2:i} = 0; $$2 < \${1:count}; $$2\${3:++}) {
  262. \${4: // code...}
  263. }
  264. snippet foreach
  265. foreach ($\${1:variable} as $\${2:value}) {
  266. \${3:// code...}
  267. }
  268. snippet foreachk
  269. foreach ($\${1:variable} as $\${2:key} => $\${3:value}) {
  270. \${4:// code...}
  271. }
  272. # $... = array (...)
  273. snippet array
  274. $\${1:arrayName} = array('\${2}' => \${3});\${4}
  275. snippet try
  276. try {
  277. \${2}
  278. } catch (\${1:Exception} $e) {
  279. }
  280. # lambda with closure
  281. snippet lambda
  282. \${1:static }function (\${2:args}) use (\${3:&$x, $y /*put vars in scope (closure) */}) {
  283. \${4}
  284. };
  285. # pre_dump();
  286. snippet pd
  287. echo '<pre>'; var_dump(\${1}); echo '</pre>';
  288. # pre_dump(); die();
  289. snippet pdd
  290. echo '<pre>'; var_dump(\${1}); echo '</pre>'; die(\${2:});
  291. snippet vd
  292. var_dump(\${1});
  293. snippet vdd
  294. var_dump(\${1}); die(\${2:});
  295. snippet http_redirect
  296. header ("HTTP/1.1 301 Moved Permanently");
  297. header ("Location: ".URL);
  298. exit();
  299. # Getters & Setters
  300. snippet gs
  301. /**
  302. * Gets the value of \${1:foo}
  303. *
  304. * @return \${2:$1}
  305. */
  306. public function get\${3:$2}()
  307. {
  308. return $this->\${4:$1};
  309. }
  310. /**
  311. * Sets the value of $1
  312. *
  313. * @param $2 $$1 \${5:description}
  314. *
  315. * @return \${6:$FILENAME}
  316. */
  317. public function set$3(\${7:$2 }$$1)
  318. {
  319. $this->$4 = $$1;
  320. return $this;
  321. }\${8}
  322. # anotation, get, and set, useful for doctrine
  323. snippet ags
  324. /**
  325. * \${1:description}
  326. *
  327. * @\${7}
  328. */
  329. \${2:protected} $\${3:foo};
  330. public function get\${4:$3}()
  331. {
  332. return $this->$3;
  333. }
  334. public function set$4(\${5:$4 }$\${6:$3})
  335. {
  336. $this->$3 = $$6;
  337. return $this;
  338. }
  339. snippet rett
  340. return true;
  341. snippet retf
  342. return false;
  343. scope html
  344. snippet <?
  345. <?php
  346. \${1}
  347. snippet <?e
  348. <?php echo \${1} ?>
  349. # this one is for php5.4
  350. snippet <?=
  351. <?=\${1}?>
  352. snippet ifil
  353. <?php if (\${1:/* condition */}): ?>
  354. \${2:<!-- code... -->}
  355. <?php endif; ?>
  356. snippet ifeil
  357. <?php if (\${1:/* condition */}): ?>
  358. \${2:<!-- html... -->}
  359. <?php else: ?>
  360. \${3:<!-- html... -->}
  361. <?php endif; ?>
  362. \${4}
  363. snippet foreachil
  364. <?php foreach ($\${1:variable} as $\${2:value}): ?>
  365. \${3:<!-- html... -->}
  366. <?php endforeach; ?>
  367. snippet foreachkil
  368. <?php foreach ($\${1:variable} as $\${2:key} => $\${3:value}): ?>
  369. \${4:<!-- html... -->}
  370. <?php endforeach; ?>
  371. scope html-tag
  372. snippet ifil\\n\\
  373. <?php if (\${1:true}): ?>\${2:code}<?php endif; ?>
  374. snippet ifeil\\n\\
  375. <?php if (\${1:true}): ?>\${2:code}<?php else: ?>\${3:code}<?php endif; ?>\${4}
  376. `}),ace.define("ace/snippets/php",["require","exports","module","ace/snippets/php.snippets"],function(n,t,e){t.snippetText=n("./php.snippets"),t.scope="php"}),function(){ace.require(["ace/snippets/php"],function(n){$&&($.exports=n)})}()})(s);var o=s.exports;const c=r(o),d=a({__proto__:null,default:c},[o]);export{d as p};
  377. //# sourceMappingURL=php-929657e0.js.map