PageRenderTime 95ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 2ms

/_ide_helper.php

https://bitbucket.org/ucha19871/valoran
PHP | 12743 lines | 3072 code | 1001 blank | 8670 comment | 0 complexity | 13a911f6c2fd71bc641b5b3613e90f43 MD5 | raw file
  1. <?php
  2. /**
  3. * An helper file for Laravel 4, to provide autocomplete information to your IDE
  4. * Generated with https://github.com/barryvdh/laravel-ide-helper
  5. *
  6. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  7. */
  8. namespace {
  9. exit('Only to be used as an helper for your IDE');
  10. class App extends \Illuminate\Support\Facades\App{
  11. /**
  12. * Create a new Illuminate application instance.
  13. *
  14. * @param \Illuminate\Http\Request
  15. * @return void
  16. * @static
  17. */
  18. public static function __construct($request = null){
  19. //Method inherited from \Illuminate\Foundation\Application
  20. \Illuminate\Foundation\Application::__construct($request);
  21. }
  22. /**
  23. * Bind the installation paths to the application.
  24. *
  25. * @param array $paths
  26. * @return void
  27. * @static
  28. */
  29. public static function bindInstallPaths($paths){
  30. //Method inherited from \Illuminate\Foundation\Application
  31. \Illuminate\Foundation\Application::bindInstallPaths($paths);
  32. }
  33. /**
  34. * Get the application bootstrap file.
  35. *
  36. * @return string
  37. * @static
  38. */
  39. public static function getBootstrapFile(){
  40. //Method inherited from \Illuminate\Foundation\Application
  41. return \Illuminate\Foundation\Application::getBootstrapFile();
  42. }
  43. /**
  44. * Start the exception handling for the request.
  45. *
  46. * @return void
  47. * @static
  48. */
  49. public static function startExceptionHandling(){
  50. //Method inherited from \Illuminate\Foundation\Application
  51. \Illuminate\Foundation\Application::startExceptionHandling();
  52. }
  53. /**
  54. * Get or check the current application environment.
  55. *
  56. * @param dynamic
  57. * @return string
  58. * @static
  59. */
  60. public static function environment(){
  61. //Method inherited from \Illuminate\Foundation\Application
  62. return \Illuminate\Foundation\Application::environment();
  63. }
  64. /**
  65. * Determine if application is in local environment.
  66. *
  67. * @return bool
  68. * @static
  69. */
  70. public static function isLocal(){
  71. //Method inherited from \Illuminate\Foundation\Application
  72. return \Illuminate\Foundation\Application::isLocal();
  73. }
  74. /**
  75. * Detect the application's current environment.
  76. *
  77. * @param array|string $envs
  78. * @return string
  79. * @static
  80. */
  81. public static function detectEnvironment($envs){
  82. //Method inherited from \Illuminate\Foundation\Application
  83. return \Illuminate\Foundation\Application::detectEnvironment($envs);
  84. }
  85. /**
  86. * Determine if we are running in the console.
  87. *
  88. * @return bool
  89. * @static
  90. */
  91. public static function runningInConsole(){
  92. //Method inherited from \Illuminate\Foundation\Application
  93. return \Illuminate\Foundation\Application::runningInConsole();
  94. }
  95. /**
  96. * Determine if we are running unit tests.
  97. *
  98. * @return bool
  99. * @static
  100. */
  101. public static function runningUnitTests(){
  102. //Method inherited from \Illuminate\Foundation\Application
  103. return \Illuminate\Foundation\Application::runningUnitTests();
  104. }
  105. /**
  106. * Force register a service provider with the application.
  107. *
  108. * @param \Illuminate\Support\ServiceProvider|string $provider
  109. * @param array $options
  110. * @return \Illuminate\Support\ServiceProvider
  111. * @static
  112. */
  113. public static function forgeRegister($provider, $options = array()){
  114. //Method inherited from \Illuminate\Foundation\Application
  115. return \Illuminate\Foundation\Application::forgeRegister($provider, $options);
  116. }
  117. /**
  118. * Register a service provider with the application.
  119. *
  120. * @param \Illuminate\Support\ServiceProvider|string $provider
  121. * @param array $options
  122. * @param bool $force
  123. * @return \Illuminate\Support\ServiceProvider
  124. * @static
  125. */
  126. public static function register($provider, $options = array(), $force = false){
  127. //Method inherited from \Illuminate\Foundation\Application
  128. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  129. }
  130. /**
  131. * Get the registered service provider instance if it exists.
  132. *
  133. * @param \Illuminate\Support\ServiceProvider|string $provider
  134. * @return \Illuminate\Support\ServiceProvider|null
  135. * @static
  136. */
  137. public static function getRegistered($provider){
  138. //Method inherited from \Illuminate\Foundation\Application
  139. return \Illuminate\Foundation\Application::getRegistered($provider);
  140. }
  141. /**
  142. * Resolve a service provider instance from the class name.
  143. *
  144. * @param string $provider
  145. * @return \Illuminate\Support\ServiceProvider
  146. * @static
  147. */
  148. public static function resolveProviderClass($provider){
  149. //Method inherited from \Illuminate\Foundation\Application
  150. return \Illuminate\Foundation\Application::resolveProviderClass($provider);
  151. }
  152. /**
  153. * Load and boot all of the remaining deferred providers.
  154. *
  155. * @return void
  156. * @static
  157. */
  158. public static function loadDeferredProviders(){
  159. //Method inherited from \Illuminate\Foundation\Application
  160. \Illuminate\Foundation\Application::loadDeferredProviders();
  161. }
  162. /**
  163. * Register a deferred provider and service.
  164. *
  165. * @param string $provider
  166. * @param string $service
  167. * @return void
  168. * @static
  169. */
  170. public static function registerDeferredProvider($provider, $service = null){
  171. //Method inherited from \Illuminate\Foundation\Application
  172. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  173. }
  174. /**
  175. * Resolve the given type from the container.
  176. *
  177. * (Overriding Container::make)
  178. *
  179. * @param string $abstract
  180. * @param array $parameters
  181. * @return mixed
  182. * @static
  183. */
  184. public static function make($abstract, $parameters = array()){
  185. //Method inherited from \Illuminate\Foundation\Application
  186. return \Illuminate\Foundation\Application::make($abstract, $parameters);
  187. }
  188. /**
  189. * Register a "before" application filter.
  190. *
  191. * @param Closure|string $callback
  192. * @return void
  193. * @static
  194. */
  195. public static function before($callback){
  196. //Method inherited from \Illuminate\Foundation\Application
  197. \Illuminate\Foundation\Application::before($callback);
  198. }
  199. /**
  200. * Register an "after" application filter.
  201. *
  202. * @param Closure|string $callback
  203. * @return void
  204. * @static
  205. */
  206. public static function after($callback){
  207. //Method inherited from \Illuminate\Foundation\Application
  208. \Illuminate\Foundation\Application::after($callback);
  209. }
  210. /**
  211. * Register a "finish" application filter.
  212. *
  213. * @param Closure|string $callback
  214. * @return void
  215. * @static
  216. */
  217. public static function finish($callback){
  218. //Method inherited from \Illuminate\Foundation\Application
  219. \Illuminate\Foundation\Application::finish($callback);
  220. }
  221. /**
  222. * Register a "shutdown" callback.
  223. *
  224. * @param callable $callback
  225. * @return void
  226. * @static
  227. */
  228. public static function shutdown($callback = null){
  229. //Method inherited from \Illuminate\Foundation\Application
  230. \Illuminate\Foundation\Application::shutdown($callback);
  231. }
  232. /**
  233. * Register a function for determining when to use array sessions.
  234. *
  235. * @param \Closure $callback
  236. * @return void
  237. * @static
  238. */
  239. public static function useArraySessions($callback){
  240. //Method inherited from \Illuminate\Foundation\Application
  241. \Illuminate\Foundation\Application::useArraySessions($callback);
  242. }
  243. /**
  244. * Determine if the application has booted.
  245. *
  246. * @return bool
  247. * @static
  248. */
  249. public static function isBooted(){
  250. //Method inherited from \Illuminate\Foundation\Application
  251. return \Illuminate\Foundation\Application::isBooted();
  252. }
  253. /**
  254. * Boot the application's service providers.
  255. *
  256. * @return void
  257. * @static
  258. */
  259. public static function boot(){
  260. //Method inherited from \Illuminate\Foundation\Application
  261. \Illuminate\Foundation\Application::boot();
  262. }
  263. /**
  264. * Register a new boot listener.
  265. *
  266. * @param mixed $callback
  267. * @return void
  268. * @static
  269. */
  270. public static function booting($callback){
  271. //Method inherited from \Illuminate\Foundation\Application
  272. \Illuminate\Foundation\Application::booting($callback);
  273. }
  274. /**
  275. * Register a new "booted" listener.
  276. *
  277. * @param mixed $callback
  278. * @return void
  279. * @static
  280. */
  281. public static function booted($callback){
  282. //Method inherited from \Illuminate\Foundation\Application
  283. \Illuminate\Foundation\Application::booted($callback);
  284. }
  285. /**
  286. * Run the application and send the response.
  287. *
  288. * @param \Symfony\Component\HttpFoundation\Request $request
  289. * @return void
  290. * @static
  291. */
  292. public static function run($request = null){
  293. //Method inherited from \Illuminate\Foundation\Application
  294. \Illuminate\Foundation\Application::run($request);
  295. }
  296. /**
  297. * Add a HttpKernel middleware onto the stack.
  298. *
  299. * @param string $class
  300. * @param array $parameters
  301. * @return \Illuminate\Foundation\Application
  302. * @static
  303. */
  304. public static function middleware($class, $parameters = array()){
  305. //Method inherited from \Illuminate\Foundation\Application
  306. return \Illuminate\Foundation\Application::middleware($class, $parameters);
  307. }
  308. /**
  309. * Remove a custom middleware from the application.
  310. *
  311. * @param string $class
  312. * @return void
  313. * @static
  314. */
  315. public static function forgetMiddleware($class){
  316. //Method inherited from \Illuminate\Foundation\Application
  317. \Illuminate\Foundation\Application::forgetMiddleware($class);
  318. }
  319. /**
  320. * Handle the given request and get the response.
  321. *
  322. * Provides compatibility with BrowserKit functional testing.
  323. *
  324. * @implements HttpKernelInterface::handle
  325. * @param \Symfony\Component\HttpFoundation\Request $request
  326. * @param int $type
  327. * @param bool $catch
  328. * @return \Symfony\Component\HttpFoundation\Response
  329. * @static
  330. */
  331. public static function handle($request, $type = 1, $catch = true){
  332. //Method inherited from \Illuminate\Foundation\Application
  333. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  334. }
  335. /**
  336. * Handle the given request and get the response.
  337. *
  338. * @param \Illuminate\Http\Request $request
  339. * @return \Symfony\Component\HttpFoundation\Response
  340. * @static
  341. */
  342. public static function dispatch($request){
  343. //Method inherited from \Illuminate\Foundation\Application
  344. return \Illuminate\Foundation\Application::dispatch($request);
  345. }
  346. /**
  347. * Terminate the request and send the response to the browser.
  348. *
  349. * @param \Symfony\Component\HttpFoundation\Request $request
  350. * @param \Symfony\Component\HttpFoundation\Response $response
  351. * @return void
  352. * @static
  353. */
  354. public static function terminate($request, $response){
  355. //Method inherited from \Illuminate\Foundation\Application
  356. \Illuminate\Foundation\Application::terminate($request, $response);
  357. }
  358. /**
  359. * Call the "finish" callbacks assigned to the application.
  360. *
  361. * @param \Symfony\Component\HttpFoundation\Request $request
  362. * @param \Symfony\Component\HttpFoundation\Response $response
  363. * @return void
  364. * @static
  365. */
  366. public static function callFinishCallbacks($request, $response){
  367. //Method inherited from \Illuminate\Foundation\Application
  368. \Illuminate\Foundation\Application::callFinishCallbacks($request, $response);
  369. }
  370. /**
  371. * Prepare the request by injecting any services.
  372. *
  373. * @param \Illuminate\Http\Request $request
  374. * @return \Illuminate\Http\Request
  375. * @static
  376. */
  377. public static function prepareRequest($request){
  378. //Method inherited from \Illuminate\Foundation\Application
  379. return \Illuminate\Foundation\Application::prepareRequest($request);
  380. }
  381. /**
  382. * Prepare the given value as a Response object.
  383. *
  384. * @param mixed $value
  385. * @return \Symfony\Component\HttpFoundation\Response
  386. * @static
  387. */
  388. public static function prepareResponse($value){
  389. //Method inherited from \Illuminate\Foundation\Application
  390. return \Illuminate\Foundation\Application::prepareResponse($value);
  391. }
  392. /**
  393. * Determine if the application is ready for responses.
  394. *
  395. * @return bool
  396. * @static
  397. */
  398. public static function readyForResponses(){
  399. //Method inherited from \Illuminate\Foundation\Application
  400. return \Illuminate\Foundation\Application::readyForResponses();
  401. }
  402. /**
  403. * Determine if the application is currently down for maintenance.
  404. *
  405. * @return bool
  406. * @static
  407. */
  408. public static function isDownForMaintenance(){
  409. //Method inherited from \Illuminate\Foundation\Application
  410. return \Illuminate\Foundation\Application::isDownForMaintenance();
  411. }
  412. /**
  413. * Register a maintenance mode event listener.
  414. *
  415. * @param \Closure $callback
  416. * @return void
  417. * @static
  418. */
  419. public static function down($callback){
  420. //Method inherited from \Illuminate\Foundation\Application
  421. \Illuminate\Foundation\Application::down($callback);
  422. }
  423. /**
  424. * Throw an HttpException with the given data.
  425. *
  426. * @param int $code
  427. * @param string $message
  428. * @param array $headers
  429. * @return void
  430. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  431. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  432. * @static
  433. */
  434. public static function abort($code, $message = '', $headers = array()){
  435. //Method inherited from \Illuminate\Foundation\Application
  436. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  437. }
  438. /**
  439. * Register a 404 error handler.
  440. *
  441. * @param Closure $callback
  442. * @return void
  443. * @static
  444. */
  445. public static function missing($callback){
  446. //Method inherited from \Illuminate\Foundation\Application
  447. \Illuminate\Foundation\Application::missing($callback);
  448. }
  449. /**
  450. * Register an application error handler.
  451. *
  452. * @param \Closure $callback
  453. * @return void
  454. * @static
  455. */
  456. public static function error($callback){
  457. //Method inherited from \Illuminate\Foundation\Application
  458. \Illuminate\Foundation\Application::error($callback);
  459. }
  460. /**
  461. * Register an error handler at the bottom of the stack.
  462. *
  463. * @param \Closure $callback
  464. * @return void
  465. * @static
  466. */
  467. public static function pushError($callback){
  468. //Method inherited from \Illuminate\Foundation\Application
  469. \Illuminate\Foundation\Application::pushError($callback);
  470. }
  471. /**
  472. * Register an error handler for fatal errors.
  473. *
  474. * @param Closure $callback
  475. * @return void
  476. * @static
  477. */
  478. public static function fatal($callback){
  479. //Method inherited from \Illuminate\Foundation\Application
  480. \Illuminate\Foundation\Application::fatal($callback);
  481. }
  482. /**
  483. * Get the configuration loader instance.
  484. *
  485. * @return \Illuminate\Config\LoaderInterface
  486. * @static
  487. */
  488. public static function getConfigLoader(){
  489. //Method inherited from \Illuminate\Foundation\Application
  490. return \Illuminate\Foundation\Application::getConfigLoader();
  491. }
  492. /**
  493. * Get the environment variables loader instance.
  494. *
  495. * @return \Illuminate\Config\EnvironmentVariablesLoaderInterface
  496. * @static
  497. */
  498. public static function getEnvironmentVariablesLoader(){
  499. //Method inherited from \Illuminate\Foundation\Application
  500. return \Illuminate\Foundation\Application::getEnvironmentVariablesLoader();
  501. }
  502. /**
  503. * Get the service provider repository instance.
  504. *
  505. * @return \Illuminate\Foundation\ProviderRepository
  506. * @static
  507. */
  508. public static function getProviderRepository(){
  509. //Method inherited from \Illuminate\Foundation\Application
  510. return \Illuminate\Foundation\Application::getProviderRepository();
  511. }
  512. /**
  513. * Get the service providers that have been loaded.
  514. *
  515. * @return array
  516. * @static
  517. */
  518. public static function getLoadedProviders(){
  519. //Method inherited from \Illuminate\Foundation\Application
  520. return \Illuminate\Foundation\Application::getLoadedProviders();
  521. }
  522. /**
  523. * Set the application's deferred services.
  524. *
  525. * @param array $services
  526. * @return void
  527. * @static
  528. */
  529. public static function setDeferredServices($services){
  530. //Method inherited from \Illuminate\Foundation\Application
  531. \Illuminate\Foundation\Application::setDeferredServices($services);
  532. }
  533. /**
  534. * Determine if the given service is a deferred service.
  535. *
  536. * @param string $service
  537. * @return bool
  538. * @static
  539. */
  540. public static function isDeferredService($service){
  541. //Method inherited from \Illuminate\Foundation\Application
  542. return \Illuminate\Foundation\Application::isDeferredService($service);
  543. }
  544. /**
  545. * Get or set the request class for the application.
  546. *
  547. * @param string $class
  548. * @return string
  549. * @static
  550. */
  551. public static function requestClass($class = null){
  552. //Method inherited from \Illuminate\Foundation\Application
  553. return \Illuminate\Foundation\Application::requestClass($class);
  554. }
  555. /**
  556. * Set the application request for the console environment.
  557. *
  558. * @return void
  559. * @static
  560. */
  561. public static function setRequestForConsoleEnvironment(){
  562. //Method inherited from \Illuminate\Foundation\Application
  563. \Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
  564. }
  565. /**
  566. * Call a method on the default request class.
  567. *
  568. * @param string $method
  569. * @param array $parameters
  570. * @return mixed
  571. * @static
  572. */
  573. public static function onRequest($method, $parameters = array()){
  574. //Method inherited from \Illuminate\Foundation\Application
  575. return \Illuminate\Foundation\Application::onRequest($method, $parameters);
  576. }
  577. /**
  578. * Get the current application locale.
  579. *
  580. * @return string
  581. * @static
  582. */
  583. public static function getLocale(){
  584. //Method inherited from \Illuminate\Foundation\Application
  585. return \Illuminate\Foundation\Application::getLocale();
  586. }
  587. /**
  588. * Set the current application locale.
  589. *
  590. * @param string $locale
  591. * @return void
  592. * @static
  593. */
  594. public static function setLocale($locale){
  595. //Method inherited from \Illuminate\Foundation\Application
  596. \Illuminate\Foundation\Application::setLocale($locale);
  597. }
  598. /**
  599. * Register the core class aliases in the container.
  600. *
  601. * @return void
  602. * @static
  603. */
  604. public static function registerCoreContainerAliases(){
  605. //Method inherited from \Illuminate\Foundation\Application
  606. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  607. }
  608. /**
  609. * Dynamically access application services.
  610. *
  611. * @param string $key
  612. * @return mixed
  613. * @static
  614. */
  615. public static function __get($key){
  616. //Method inherited from \Illuminate\Foundation\Application
  617. return \Illuminate\Foundation\Application::__get($key);
  618. }
  619. /**
  620. * Dynamically set application services.
  621. *
  622. * @param string $key
  623. * @param mixed $value
  624. * @return void
  625. * @static
  626. */
  627. public static function __set($key, $value){
  628. //Method inherited from \Illuminate\Foundation\Application
  629. \Illuminate\Foundation\Application::__set($key, $value);
  630. }
  631. /**
  632. * Determine if the given abstract type has been bound.
  633. *
  634. * @param string $abstract
  635. * @return bool
  636. * @static
  637. */
  638. public static function bound($abstract){
  639. //Method inherited from \Illuminate\Container\Container
  640. return \Illuminate\Foundation\Application::bound($abstract);
  641. }
  642. /**
  643. * Determine if a given string is an alias.
  644. *
  645. * @param string $name
  646. * @return bool
  647. * @static
  648. */
  649. public static function isAlias($name){
  650. //Method inherited from \Illuminate\Container\Container
  651. return \Illuminate\Foundation\Application::isAlias($name);
  652. }
  653. /**
  654. * Register a binding with the container.
  655. *
  656. * @param string $abstract
  657. * @param Closure|string|null $concrete
  658. * @param bool $shared
  659. * @return void
  660. * @static
  661. */
  662. public static function bind($abstract, $concrete = null, $shared = false){
  663. //Method inherited from \Illuminate\Container\Container
  664. \Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  665. }
  666. /**
  667. * Register a binding if it hasn't already been registered.
  668. *
  669. * @param string $abstract
  670. * @param Closure|string|null $concrete
  671. * @param bool $shared
  672. * @return bool
  673. * @static
  674. */
  675. public static function bindIf($abstract, $concrete = null, $shared = false){
  676. //Method inherited from \Illuminate\Container\Container
  677. return \Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  678. }
  679. /**
  680. * Register a shared binding in the container.
  681. *
  682. * @param string $abstract
  683. * @param Closure|string|null $concrete
  684. * @return void
  685. * @static
  686. */
  687. public static function singleton($abstract, $concrete = null){
  688. //Method inherited from \Illuminate\Container\Container
  689. \Illuminate\Foundation\Application::singleton($abstract, $concrete);
  690. }
  691. /**
  692. * Wrap a Closure such that it is shared.
  693. *
  694. * @param Closure $closure
  695. * @return Closure
  696. * @static
  697. */
  698. public static function share($closure){
  699. //Method inherited from \Illuminate\Container\Container
  700. return \Illuminate\Foundation\Application::share($closure);
  701. }
  702. /**
  703. * Bind a shared Closure into the container.
  704. *
  705. * @param string $abstract
  706. * @param \Closure $closure
  707. * @return void
  708. * @static
  709. */
  710. public static function bindShared($abstract, $closure){
  711. //Method inherited from \Illuminate\Container\Container
  712. \Illuminate\Foundation\Application::bindShared($abstract, $closure);
  713. }
  714. /**
  715. * "Extend" an abstract type in the container.
  716. *
  717. * @param string $abstract
  718. * @param Closure $closure
  719. * @return void
  720. * @throws \InvalidArgumentException
  721. * @static
  722. */
  723. public static function extend($abstract, $closure){
  724. //Method inherited from \Illuminate\Container\Container
  725. \Illuminate\Foundation\Application::extend($abstract, $closure);
  726. }
  727. /**
  728. * Register an existing instance as shared in the container.
  729. *
  730. * @param string $abstract
  731. * @param mixed $instance
  732. * @return void
  733. * @static
  734. */
  735. public static function instance($abstract, $instance){
  736. //Method inherited from \Illuminate\Container\Container
  737. \Illuminate\Foundation\Application::instance($abstract, $instance);
  738. }
  739. /**
  740. * Alias a type to a shorter name.
  741. *
  742. * @param string $abstract
  743. * @param string $alias
  744. * @return void
  745. * @static
  746. */
  747. public static function alias($abstract, $alias){
  748. //Method inherited from \Illuminate\Container\Container
  749. \Illuminate\Foundation\Application::alias($abstract, $alias);
  750. }
  751. /**
  752. * Bind a new callback to an abstract's rebind event.
  753. *
  754. * @param string $abstract
  755. * @param \Closure $callback
  756. * @return mixed
  757. * @static
  758. */
  759. public static function rebinding($abstract, $callback){
  760. //Method inherited from \Illuminate\Container\Container
  761. return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
  762. }
  763. /**
  764. * Refresh an instance on the given target and method.
  765. *
  766. * @param string $abstract
  767. * @param mixed $target
  768. * @param string $method
  769. * @return mixed
  770. * @static
  771. */
  772. public static function refresh($abstract, $target, $method){
  773. //Method inherited from \Illuminate\Container\Container
  774. return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
  775. }
  776. /**
  777. * Instantiate a concrete instance of the given type.
  778. *
  779. * @param string $concrete
  780. * @param array $parameters
  781. * @return mixed
  782. * @throws BindingResolutionException
  783. * @static
  784. */
  785. public static function build($concrete, $parameters = array()){
  786. //Method inherited from \Illuminate\Container\Container
  787. return \Illuminate\Foundation\Application::build($concrete, $parameters);
  788. }
  789. /**
  790. * Register a new resolving callback.
  791. *
  792. * @param string $abstract
  793. * @param \Closure $callback
  794. * @return void
  795. * @static
  796. */
  797. public static function resolving($abstract, $callback){
  798. //Method inherited from \Illuminate\Container\Container
  799. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  800. }
  801. /**
  802. * Register a new resolving callback for all types.
  803. *
  804. * @param \Closure $callback
  805. * @return void
  806. * @static
  807. */
  808. public static function resolvingAny($callback){
  809. //Method inherited from \Illuminate\Container\Container
  810. \Illuminate\Foundation\Application::resolvingAny($callback);
  811. }
  812. /**
  813. * Determine if a given type is shared.
  814. *
  815. * @param string $abstract
  816. * @return bool
  817. * @static
  818. */
  819. public static function isShared($abstract){
  820. //Method inherited from \Illuminate\Container\Container
  821. return \Illuminate\Foundation\Application::isShared($abstract);
  822. }
  823. /**
  824. * Get the container's bindings.
  825. *
  826. * @return array
  827. * @static
  828. */
  829. public static function getBindings(){
  830. //Method inherited from \Illuminate\Container\Container
  831. return \Illuminate\Foundation\Application::getBindings();
  832. }
  833. /**
  834. * Remove a resolved instance from the instance cache.
  835. *
  836. * @param string $abstract
  837. * @return void
  838. * @static
  839. */
  840. public static function forgetInstance($abstract){
  841. //Method inherited from \Illuminate\Container\Container
  842. \Illuminate\Foundation\Application::forgetInstance($abstract);
  843. }
  844. /**
  845. * Clear all of the instances from the container.
  846. *
  847. * @return void
  848. * @static
  849. */
  850. public static function forgetInstances(){
  851. //Method inherited from \Illuminate\Container\Container
  852. \Illuminate\Foundation\Application::forgetInstances();
  853. }
  854. /**
  855. * Determine if a given offset exists.
  856. *
  857. * @param string $key
  858. * @return bool
  859. * @static
  860. */
  861. public static function offsetExists($key){
  862. //Method inherited from \Illuminate\Container\Container
  863. return \Illuminate\Foundation\Application::offsetExists($key);
  864. }
  865. /**
  866. * Get the value at a given offset.
  867. *
  868. * @param string $key
  869. * @return mixed
  870. * @static
  871. */
  872. public static function offsetGet($key){
  873. //Method inherited from \Illuminate\Container\Container
  874. return \Illuminate\Foundation\Application::offsetGet($key);
  875. }
  876. /**
  877. * Set the value at a given offset.
  878. *
  879. * @param string $key
  880. * @param mixed $value
  881. * @return void
  882. * @static
  883. */
  884. public static function offsetSet($key, $value){
  885. //Method inherited from \Illuminate\Container\Container
  886. \Illuminate\Foundation\Application::offsetSet($key, $value);
  887. }
  888. /**
  889. * Unset the value at a given offset.
  890. *
  891. * @param string $key
  892. * @return void
  893. * @static
  894. */
  895. public static function offsetUnset($key){
  896. //Method inherited from \Illuminate\Container\Container
  897. \Illuminate\Foundation\Application::offsetUnset($key);
  898. }
  899. }
  900. class Artisan extends \Illuminate\Support\Facades\Artisan{
  901. /**
  902. * Create and boot a new Console application.
  903. *
  904. * @param \Illuminate\Foundation\Application $app
  905. * @return \Illuminate\Console\Application
  906. * @static
  907. */
  908. public static function start($app){
  909. //Method inherited from \Illuminate\Console\Application
  910. return \Illuminate\Console\Application::start($app);
  911. }
  912. /**
  913. * Create a new Console application.
  914. *
  915. * @param \Illuminate\Foundation\Application $app
  916. * @return \Illuminate\Console\Application
  917. * @static
  918. */
  919. public static function make($app){
  920. //Method inherited from \Illuminate\Console\Application
  921. return \Illuminate\Console\Application::make($app);
  922. }
  923. /**
  924. * Boot the Console application.
  925. *
  926. * @return \Illuminate\Console\Application
  927. * @static
  928. */
  929. public static function boot(){
  930. //Method inherited from \Illuminate\Console\Application
  931. return \Illuminate\Console\Application::boot();
  932. }
  933. /**
  934. * Run an Artisan console command by name.
  935. *
  936. * @param string $command
  937. * @param array $parameters
  938. * @param \Symfony\Component\Console\Output\OutputInterface $output
  939. * @return void
  940. * @static
  941. */
  942. public static function call($command, $parameters = array(), $output = null){
  943. //Method inherited from \Illuminate\Console\Application
  944. \Illuminate\Console\Application::call($command, $parameters, $output);
  945. }
  946. /**
  947. * Add a command to the console.
  948. *
  949. * @param \Symfony\Component\Console\Command\Command $command
  950. * @return \Symfony\Component\Console\Command\Command
  951. * @static
  952. */
  953. public static function add($command){
  954. //Method inherited from \Illuminate\Console\Application
  955. return \Illuminate\Console\Application::add($command);
  956. }
  957. /**
  958. * Add a command, resolving through the application.
  959. *
  960. * @param string $command
  961. * @return \Symfony\Component\Console\Command\Command
  962. * @static
  963. */
  964. public static function resolve($command){
  965. //Method inherited from \Illuminate\Console\Application
  966. return \Illuminate\Console\Application::resolve($command);
  967. }
  968. /**
  969. * Resolve an array of commands through the application.
  970. *
  971. * @param array|dynamic $commands
  972. * @return void
  973. * @static
  974. */
  975. public static function resolveCommands($commands){
  976. //Method inherited from \Illuminate\Console\Application
  977. \Illuminate\Console\Application::resolveCommands($commands);
  978. }
  979. /**
  980. * Render the given exception.
  981. *
  982. * @param \Exception $e
  983. * @param \Symfony\Component\Console\Output\OutputInterface $output
  984. * @return void
  985. * @static
  986. */
  987. public static function renderException($e, $output){
  988. //Method inherited from \Illuminate\Console\Application
  989. \Illuminate\Console\Application::renderException($e, $output);
  990. }
  991. /**
  992. * Set the exception handler instance.
  993. *
  994. * @param \Illuminate\Exception\Handler $handler
  995. * @return \Illuminate\Console\Application
  996. * @static
  997. */
  998. public static function setExceptionHandler($handler){
  999. //Method inherited from \Illuminate\Console\Application
  1000. return \Illuminate\Console\Application::setExceptionHandler($handler);
  1001. }
  1002. /**
  1003. * Set the Laravel application instance.
  1004. *
  1005. * @param \Illuminate\Foundation\Application $laravel
  1006. * @return \Illuminate\Console\Application
  1007. * @static
  1008. */
  1009. public static function setLaravel($laravel){
  1010. //Method inherited from \Illuminate\Console\Application
  1011. return \Illuminate\Console\Application::setLaravel($laravel);
  1012. }
  1013. /**
  1014. * Set whether the Console app should auto-exit when done.
  1015. *
  1016. * @param bool $boolean
  1017. * @return \Illuminate\Console\Application
  1018. * @static
  1019. */
  1020. public static function setAutoExit($boolean){
  1021. //Method inherited from \Illuminate\Console\Application
  1022. return \Illuminate\Console\Application::setAutoExit($boolean);
  1023. }
  1024. /**
  1025. * Constructor.
  1026. *
  1027. * @param string $name The name of the application
  1028. * @param string $version The version of the application
  1029. * @api
  1030. * @static
  1031. */
  1032. public static function __construct($name = 'UNKNOWN', $version = 'UNKNOWN'){
  1033. //Method inherited from \Symfony\Component\Console\Application
  1034. \Illuminate\Console\Application::__construct($name, $version);
  1035. }
  1036. /**
  1037. *
  1038. *
  1039. * @static
  1040. */
  1041. public static function setDispatcher($dispatcher){
  1042. //Method inherited from \Symfony\Component\Console\Application
  1043. \Illuminate\Console\Application::setDispatcher($dispatcher);
  1044. }
  1045. /**
  1046. * Runs the current application.
  1047. *
  1048. * @param InputInterface $input An Input instance
  1049. * @param OutputInterface $output An Output instance
  1050. * @return int 0 if everything went fine, or an error code
  1051. * @throws \Exception When doRun returns Exception
  1052. * @api
  1053. * @static
  1054. */
  1055. public static function run($input = null, $output = null){
  1056. //Method inherited from \Symfony\Component\Console\Application
  1057. return \Illuminate\Console\Application::run($input, $output);
  1058. }
  1059. /**
  1060. * Runs the current application.
  1061. *
  1062. * @param InputInterface $input An Input instance
  1063. * @param OutputInterface $output An Output instance
  1064. * @return int 0 if everything went fine, or an error code
  1065. * @static
  1066. */
  1067. public static function doRun($input, $output){
  1068. //Method inherited from \Symfony\Component\Console\Application
  1069. return \Illuminate\Console\Application::doRun($input, $output);
  1070. }
  1071. /**
  1072. * Set a helper set to be used with the command.
  1073. *
  1074. * @param HelperSet $helperSet The helper set
  1075. * @api
  1076. * @static
  1077. */
  1078. public static function setHelperSet($helperSet){
  1079. //Method inherited from \Symfony\Component\Console\Application
  1080. \Illuminate\Console\Application::setHelperSet($helperSet);
  1081. }
  1082. /**
  1083. * Get the helper set associated with the command.
  1084. *
  1085. * @return HelperSet The HelperSet instance associated with this command
  1086. * @api
  1087. * @static
  1088. */
  1089. public static function getHelperSet(){
  1090. //Method inherited from \Symfony\Component\Console\Application
  1091. return \Illuminate\Console\Application::getHelperSet();
  1092. }
  1093. /**
  1094. * Set an input definition set to be used with this application
  1095. *
  1096. * @param InputDefinition $definition The input definition
  1097. * @api
  1098. * @static
  1099. */
  1100. public static function setDefinition($definition){
  1101. //Method inherited from \Symfony\Component\Console\Application
  1102. \Illuminate\Console\Application::setDefinition($definition);
  1103. }
  1104. /**
  1105. * Gets the InputDefinition related to this Application.
  1106. *
  1107. * @return InputDefinition The InputDefinition instance
  1108. * @static
  1109. */
  1110. public static function getDefinition(){
  1111. //Method inherited from \Symfony\Component\Console\Application
  1112. return \Illuminate\Console\Application::getDefinition();
  1113. }
  1114. /**
  1115. * Gets the help message.
  1116. *
  1117. * @return string A help message.
  1118. * @static
  1119. */
  1120. public static function getHelp(){
  1121. //Method inherited from \Symfony\Component\Console\Application
  1122. return \Illuminate\Console\Application::getHelp();
  1123. }
  1124. /**
  1125. * Sets whether to catch exceptions or not during commands execution.
  1126. *
  1127. * @param bool $boolean Whether to catch exceptions or not during commands execution
  1128. * @api
  1129. * @static
  1130. */
  1131. public static function setCatchExceptions($boolean){
  1132. //Method inherited from \Symfony\Component\Console\Application
  1133. \Illuminate\Console\Application::setCatchExceptions($boolean);
  1134. }
  1135. /**
  1136. * Gets the name of the application.
  1137. *
  1138. * @return string The application name
  1139. * @api
  1140. * @static
  1141. */
  1142. public static function getName(){
  1143. //Method inherited from \Symfony\Component\Console\Application
  1144. return \Illuminate\Console\Application::getName();
  1145. }
  1146. /**
  1147. * Sets the application name.
  1148. *
  1149. * @param string $name The application name
  1150. * @api
  1151. * @static
  1152. */
  1153. public static function setName($name){
  1154. //Method inherited from \Symfony\Component\Console\Application
  1155. \Illuminate\Console\Application::setName($name);
  1156. }
  1157. /**
  1158. * Gets the application version.
  1159. *
  1160. * @return string The application version
  1161. * @api
  1162. * @static
  1163. */
  1164. public static function getVersion(){
  1165. //Method inherited from \Symfony\Component\Console\Application
  1166. return \Illuminate\Console\Application::getVersion();
  1167. }
  1168. /**
  1169. * Sets the application version.
  1170. *
  1171. * @param string $version The application version
  1172. * @api
  1173. * @static
  1174. */
  1175. public static function setVersion($version){
  1176. //Method inherited from \Symfony\Component\Console\Application
  1177. \Illuminate\Console\Application::setVersion($version);
  1178. }
  1179. /**
  1180. * Returns the long version of the application.
  1181. *
  1182. * @return string The long application version
  1183. * @api
  1184. * @static
  1185. */
  1186. public static function getLongVersion(){
  1187. //Method inherited from \Symfony\Component\Console\Application
  1188. return \Illuminate\Console\Application::getLongVersion();
  1189. }
  1190. /**
  1191. * Registers a new command.
  1192. *
  1193. * @param string $name The command name
  1194. * @return Command The newly created command
  1195. * @api
  1196. * @static
  1197. */
  1198. public static function register($name){
  1199. //Method inherited from \Symfony\Component\Console\Application
  1200. return \Illuminate\Console\Application::register($name);
  1201. }
  1202. /**
  1203. * Adds an array of command objects.
  1204. *
  1205. * @param Command[] $commands An array of commands
  1206. * @api
  1207. * @static
  1208. */
  1209. public static function addCommands($commands){
  1210. //Method inherited from \Symfony\Component\Console\Application
  1211. \Illuminate\Console\Application::addCommands($commands);
  1212. }
  1213. /**
  1214. * Returns a registered command by name or alias.
  1215. *
  1216. * @param string $name The command name or alias
  1217. * @return Command A Command object
  1218. * @throws \InvalidArgumentException When command name given does not exist
  1219. * @api
  1220. * @static
  1221. */
  1222. public static function get($name){
  1223. //Method inherited from \Symfony\Component\Console\Application
  1224. return \Illuminate\Console\Application::get($name);
  1225. }
  1226. /**
  1227. * Returns true if the command exists, false otherwise.
  1228. *
  1229. * @param string $name The command name or alias
  1230. * @return bool true if the command exists, false otherwise
  1231. * @api
  1232. * @static
  1233. */
  1234. public static function has($name){
  1235. //Method inherited from \Symfony\Component\Console\Application
  1236. return \Illuminate\Console\Application::has($name);
  1237. }
  1238. /**
  1239. * Returns an array of all unique namespaces used by currently registered commands.
  1240. *
  1241. * It does not returns the global namespace which always exists.
  1242. *
  1243. * @return array An array of namespaces
  1244. * @static
  1245. */
  1246. public static function getNamespaces(){
  1247. //Method inherited from \Symfony\Component\Console\Application
  1248. return \Illuminate\Console\Application::getNamespaces();
  1249. }
  1250. /**
  1251. * Finds a registered namespace by a name or an abbreviation.
  1252. *
  1253. * @param string $namespace A namespace or abbreviation to search for
  1254. * @return string A registered namespace
  1255. * @throws \InvalidArgumentException When namespace is incorrect or ambiguous
  1256. * @static
  1257. */
  1258. public static function findNamespace($namespace){
  1259. //Method inherited from \Symfony\Component\Console\Application
  1260. return \Illuminate\Console\Application::findNamespace($namespace);
  1261. }
  1262. /**
  1263. * Finds a command by name or alias.
  1264. *
  1265. * Contrary to get, this command tries to find the best
  1266. * match if you give it an abbreviation of a name or alias.
  1267. *
  1268. * @param string $name A command name or a command alias
  1269. * @return Command A Command instance
  1270. * @throws \InvalidArgumentException When command name is incorrect or ambiguous
  1271. * @api
  1272. * @static
  1273. */
  1274. public static function find($name){
  1275. //Method inherited from \Symfony\Component\Console\Application
  1276. return \Illuminate\Console\Application::find($name);
  1277. }
  1278. /**
  1279. * Gets the commands (registered in the given namespace if provided).
  1280. *
  1281. * The array keys are the full names and the values the command instances.
  1282. *
  1283. * @param string $namespace A namespace name
  1284. * @return Command[] An array of Command instances
  1285. * @api
  1286. * @static
  1287. */
  1288. public static function all($namespace = null){
  1289. //Method inherited from \Symfony\Component\Console\Application
  1290. return \Illuminate\Console\Application::all($namespace);
  1291. }
  1292. /**
  1293. * Returns an array of possible abbreviations given a set of names.
  1294. *
  1295. * @param array $names An array of names
  1296. * @return array An array of abbreviations
  1297. * @static
  1298. */
  1299. public static function getAbbreviations($names){
  1300. //Method inherited from \Symfony\Component\Console\Application
  1301. return \Illuminate\Console\Application::getAbbreviations($names);
  1302. }
  1303. /**
  1304. * Returns a text representation of the Application.
  1305. *
  1306. * @param string $namespace An optional namespace name
  1307. * @param bool $raw Whether to return raw command list
  1308. * @return string A string representing the Application
  1309. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  1310. * @static
  1311. */
  1312. public static function asText($namespace = null, $raw = false){
  1313. //Method inherited from \Symfony\Component\Console\Application
  1314. return \Illuminate\Console\Application::asText($namespace, $raw);
  1315. }
  1316. /**
  1317. * Returns an XML representation of the Application.
  1318. *
  1319. * @param string $namespace An optional namespace name
  1320. * @param bool $asDom Whether to return a DOM or an XML string
  1321. * @return string|\DOMDocument An XML string representing the Application
  1322. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  1323. * @static
  1324. */
  1325. public static function asXml($namespace = null, $asDom = false){
  1326. //Method inherited from \Symfony\Component\Console\Application
  1327. return \Illuminate\Console\Application::asXml($namespace, $asDom);
  1328. }
  1329. /**
  1330. * Tries to figure out the terminal dimensions based on the current environment
  1331. *
  1332. * @return array Array containing width and height
  1333. * @static
  1334. */
  1335. public static function getTerminalDimensions(){
  1336. //Method inherited from \Symfony\Component\Console\Application
  1337. return \Illuminate\Console\Application::getTerminalDimensions();
  1338. }
  1339. /**
  1340. * Sets terminal dimensions.
  1341. *
  1342. * Can be useful to force terminal dimensions for functional tests.
  1343. *
  1344. * @param int $width The width
  1345. * @param int $height The height
  1346. * @return Application The current application
  1347. * @static
  1348. */
  1349. public static function setTerminalDimensions($width, $height){
  1350. //Method inherited from \Symfony\Component\Console\Application
  1351. return \Illuminate\Console\Application::setTerminalDimensions($width, $height);
  1352. }
  1353. /**
  1354. * Returns the namespace part of the command name.
  1355. *
  1356. * This method is not part of public API and should not be used directly.
  1357. *
  1358. * @param string $name The full name of the command
  1359. * @param string $limit The maximum number of parts of the namespace
  1360. * @return string The namespace of the command
  1361. * @static
  1362. */
  1363. public static function extractNamespace($name, $limit = null){
  1364. //Method inherited from \Symfony\Component\Console\Application
  1365. return \Illuminate\Console\Application::extractNamespace($name, $limit);
  1366. }
  1367. /**
  1368. * Dynamically pass all missing methods to console Artisan.
  1369. *
  1370. * @param string $method
  1371. * @param array $parameters
  1372. * @return mixed
  1373. * @static
  1374. */
  1375. public static function __call($method, $parameters){
  1376. //Method inherited from \Illuminate\Foundation\Artisan
  1377. return \Illuminate\Foundation\Artisan::__call($method, $parameters);
  1378. }
  1379. }
  1380. class Auth extends \Illuminate\Support\Facades\Auth{
  1381. /**
  1382. * Create an instance of the database driver.
  1383. *
  1384. * @return \Illuminate\Auth\Guard
  1385. * @static
  1386. */
  1387. public static function createDatabaseDriver(){
  1388. //Method inherited from \Illuminate\Auth\AuthManager
  1389. return \Illuminate\Auth\AuthManager::createDatabaseDriver();
  1390. }
  1391. /**
  1392. * Create an instance of the Eloquent driver.
  1393. *
  1394. * @return \Illuminate\Auth\Guard
  1395. * @static
  1396. */
  1397. public static function createEloquentDriver(){
  1398. //Method inherited from \Illuminate\Auth\AuthManager
  1399. return \Illuminate\Auth\AuthManager::createEloquentDriver();
  1400. }
  1401. /**
  1402. * Get the default authentication driver name.
  1403. *
  1404. * @return string
  1405. * @static
  1406. */
  1407. public static function getDefaultDriver(){
  1408. //Method inherited from \Illuminate\Auth\AuthManager
  1409. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1410. }
  1411. /**
  1412. * Set the default authentication driver name.
  1413. *
  1414. * @param string $name
  1415. * @return void
  1416. * @static
  1417. */
  1418. public static function setDefaultDriver($name){
  1419. //Method inherited from \Illuminate\Auth\AuthManager
  1420. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1421. }
  1422. /**
  1423. * Create a new manager instance.
  1424. *
  1425. * @param \Illuminate\Foundation\Application $app
  1426. * @return void
  1427. * @static
  1428. */
  1429. public static function __construct($app){
  1430. //Method inherited from \Illuminate\Support\Manager
  1431. \Illuminate\Auth\AuthManager::__construct($app);
  1432. }
  1433. /**
  1434. * Get a driver instance.
  1435. *
  1436. * @param string $driver
  1437. * @return mixed
  1438. * @static
  1439. */
  1440. public static function driver($driver = null){
  1441. //Method inherited from \Illuminate\Support\Manager
  1442. return \Illuminate\Auth\AuthManager::driver($driver);
  1443. }
  1444. /**
  1445. * Register a custom driver creator Closure.
  1446. *
  1447. * @param string $driver
  1448. * @param Closure $callback
  1449. * @return \Illuminate\Support\Manager|static
  1450. * @static
  1451. */
  1452. public static function extend($driver, $callback){
  1453. //Method inherited from \Illuminate\Support\Manager
  1454. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1455. }
  1456. /**
  1457. * Get all of the created "drivers".
  1458. *
  1459. * @return array
  1460. * @static
  1461. */
  1462. public static function getDrivers(){
  1463. //Method inherited from \Illuminate\Support\Manager
  1464. return \Illuminate\Auth\AuthManager::getDrivers();
  1465. }
  1466. /**
  1467. * Dynamically call the default driver instance.
  1468. *
  1469. * @param string $method
  1470. * @param array $parameters
  1471. * @return mixed
  1472. * @static
  1473. */
  1474. public static function __call($method, $parameters){
  1475. //Method inherited from \Illuminate\Support\Manager
  1476. return \Illuminate\Auth\AuthManager::__call($method, $parameters);
  1477. }
  1478. /**
  1479. * Determine if the current user is authenticated.
  1480. *
  1481. * @return bool
  1482. * @static
  1483. */
  1484. public static function check(){
  1485. //Method inherited from \Illuminate\Auth\Guard
  1486. return \Illuminate\Auth\Guard::check();
  1487. }
  1488. /**
  1489. * Determine if the current user is a guest.
  1490. *
  1491. * @return bool
  1492. * @static
  1493. */
  1494. public static function guest(){
  1495. //Method inherited from \Illuminate\Auth\Guard
  1496. return \Illuminate\Auth\Guard::guest();
  1497. }
  1498. /**
  1499. * Get the currently authenticated user.
  1500. *
  1501. * @return \Illuminate\Auth\UserInterface|null
  1502. * @static
  1503. */
  1504. public static function user(){
  1505. //Method inherited from \Illuminate\Auth\Guard
  1506. return \Illuminate\Auth\Guard::user();
  1507. }
  1508. /**
  1509. * Get the ID for the currently authenticated user.
  1510. *
  1511. * @return int|null
  1512. * @static
  1513. */
  1514. public static function id(){
  1515. //Method inherited from \Illuminate\Auth\Guard
  1516. return \Illuminate\Auth\Guard::id();
  1517. }
  1518. /**
  1519. * Log a user into the application without sessions or cookies.
  1520. *
  1521. * @param array $credentials
  1522. * @return bool
  1523. * @static
  1524. */
  1525. public static function once($credentials = array()){
  1526. //Method inherited from \Illuminate\Auth\Guard
  1527. return \Illuminate\Auth\Guard::once($credentials);
  1528. }
  1529. /**
  1530. * Validate a user's credentials.
  1531. *
  1532. * @param array $credentials
  1533. * @return bool
  1534. * @static
  1535. */
  1536. public static function validate($credentials = array()){
  1537. //Method inherited from \Illuminate\Auth\Guard
  1538. return \Illuminate\Auth\Guard::validate($credentials);
  1539. }
  1540. /**
  1541. * Attempt to authenticate using HTTP Basic Auth.
  1542. *
  1543. * @param string $field
  1544. * @param \Symfony\Component\HttpFoundation\Request $request
  1545. * @return \Symfony\Component\HttpFoundation\Response|null
  1546. * @static
  1547. */
  1548. public static function basic($field = 'email', $request = null){
  1549. //Method inherited from \Illuminate\Auth\Guard
  1550. return \Illuminate\Auth\Guard::basic($field, $request);
  1551. }
  1552. /**
  1553. * Perform a stateless HTTP Basic login attempt.
  1554. *
  1555. * @param string $field
  1556. * @param \Symfony\Component\HttpFoundation\Request $request
  1557. * @return \Symfony\Component\HttpFoundation\Response|null
  1558. * @static
  1559. */
  1560. public static function onceBasic($field = 'email', $request = null){
  1561. //Method inherited from \Illuminate\Auth\Guard
  1562. return \Illuminate\Auth\Guard::onceBasic($field, $request);
  1563. }
  1564. /**
  1565. * Attempt to authenticate a user using the given credentials.
  1566. *
  1567. * @param array $credentials
  1568. * @param bool $remember
  1569. * @param bool $login
  1570. * @return bool
  1571. * @static
  1572. */
  1573. public static function attempt($credentials = array(), $remember = false, $login = true){
  1574. //Method inherited from \Illuminate\Auth\Guard
  1575. return \Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
  1576. }
  1577. /**
  1578. * Register an authentication attempt event listener.
  1579. *
  1580. * @param mixed $callback
  1581. * @return void
  1582. * @static
  1583. */
  1584. public static function attempting($callback){
  1585. //Method inherited from \Illuminate\Auth\Guard
  1586. \Illuminate\Auth\Guard::attempting($callback);
  1587. }
  1588. /**
  1589. * Log a user into the application.
  1590. *
  1591. * @param \Illuminate\Auth\UserInterface $user
  1592. * @param bool $remember
  1593. * @return void
  1594. * @static
  1595. */
  1596. public static function login($user, $remember = false){
  1597. //Method inherited from \Illuminate\Auth\Guard
  1598. \Illuminate\Auth\Guard::login($user, $remember);
  1599. }
  1600. /**
  1601. * Log the given user ID into the application.
  1602. *
  1603. * @param mixed $id
  1604. * @param bool $remember
  1605. * @return \Illuminate\Auth\UserInterface
  1606. * @static
  1607. */
  1608. public static function loginUsingId($id, $remember = false){
  1609. //Method inherited from \Illuminate\Auth\Guard
  1610. return \Illuminate\Auth\Guard::loginUsingId($id, $remember);
  1611. }
  1612. /**
  1613. * Log the given user ID into the application without sessions or cookies.
  1614. *
  1615. * @param mixed $id
  1616. * @return bool
  1617. * @static
  1618. */
  1619. public static function onceUsingId($id){
  1620. //Method inherited from \Illuminate\Auth\Guard
  1621. return \Illuminate\Auth\Guard::onceUsingId($id);
  1622. }
  1623. /**
  1624. * Log the user out of the application.
  1625. *
  1626. * @return void
  1627. * @static
  1628. */
  1629. public static function logout(){
  1630. //Method inherited from \Illuminate\Auth\Guard
  1631. \Illuminate\Auth\Guard::logout();
  1632. }
  1633. /**
  1634. * Get the cookie creator instance used by the guard.
  1635. *
  1636. * @return \Illuminate\Cookie\CookieJar
  1637. * @throws \RuntimeException
  1638. * @static
  1639. */
  1640. public static function getCookieJar(){
  1641. //Method inherited from \Illuminate\Auth\Guard
  1642. return \Illuminate\Auth\Guard::getCookieJar();
  1643. }
  1644. /**
  1645. * Set the cookie creator instance used by the guard.
  1646. *
  1647. * @param \Illuminate\Cookie\CookieJar $cookie
  1648. * @return void
  1649. * @static
  1650. */
  1651. public static function setCookieJar($cookie){
  1652. //Method inherited from \Illuminate\Auth\Guard
  1653. \Illuminate\Auth\Guard::setCookieJar($cookie);
  1654. }
  1655. /**
  1656. * Get the event dispatcher instance.
  1657. *
  1658. * @return \Illuminate\Events\Dispatcher
  1659. * @static
  1660. */
  1661. public static function getDispatcher(){
  1662. //Method inherited from \Illuminate\Auth\Guard
  1663. return \Illuminate\Auth\Guard::getDispatcher();
  1664. }
  1665. /**
  1666. * Set the event dispatcher instance.
  1667. *
  1668. * @param \Illuminate\Events\Dispatcher
  1669. * @static
  1670. */
  1671. public static function setDispatcher($events){
  1672. //Method inherited from \Illuminate\Auth\Guard
  1673. \Illuminate\Auth\Guard::setDispatcher($events);
  1674. }
  1675. /**
  1676. * Get the session store used by the guard.
  1677. *
  1678. * @return \Illuminate\Session\Store
  1679. * @static
  1680. */
  1681. public static function getSession(){
  1682. //Method inherited from \Illuminate\Auth\Guard
  1683. return \Illuminate\Auth\Guard::getSession();
  1684. }
  1685. /**
  1686. * Get the user provider used by the guard.
  1687. *
  1688. * @return \Illuminate\Auth\UserProviderInterface
  1689. * @static
  1690. */
  1691. public static function getProvider(){
  1692. //Method inherited from \Illuminate\Auth\Guard
  1693. return \Illuminate\Auth\Guard::getProvider();
  1694. }
  1695. /**
  1696. * Set the user provider used by the guard.
  1697. *
  1698. * @param \Illuminate\Auth\UserProviderInterface $provider
  1699. * @return void
  1700. * @static
  1701. */
  1702. public static function setProvider($provider){
  1703. //Method inherited from \Illuminate\Auth\Guard
  1704. \Illuminate\Auth\Guard::setProvider($provider);
  1705. }
  1706. /**
  1707. * Return the currently cached user of the application.
  1708. *
  1709. * @return \Illuminate\Auth\UserInterface|null
  1710. * @static
  1711. */
  1712. public static function getUser(){
  1713. //Method inherited from \Illuminate\Auth\Guard
  1714. return \Illuminate\Auth\Guard::getUser();
  1715. }
  1716. /**
  1717. * Set the current user of the application.
  1718. *
  1719. * @param \Illuminate\Auth\UserInterface $user
  1720. * @return void
  1721. * @static
  1722. */
  1723. public static function setUser($user){
  1724. //Method inherited from \Illuminate\Auth\Guard
  1725. \Illuminate\Auth\Guard::setUser($user);
  1726. }
  1727. /**
  1728. * Get the current request instance.
  1729. *
  1730. * @return \Symfony\Component\HttpFoundation\Request
  1731. * @static
  1732. */
  1733. public static function getRequest(){
  1734. //Method inherited from \Illuminate\Auth\Guard
  1735. return \Illuminate\Auth\Guard::getRequest();
  1736. }
  1737. /**
  1738. * Set the current request instance.
  1739. *
  1740. * @param \Symfony\Component\HttpFoundation\Request
  1741. * @return \Illuminate\Auth\Guard
  1742. * @static
  1743. */
  1744. public static function setRequest($request){
  1745. //Method inherited from \Illuminate\Auth\Guard
  1746. return \Illuminate\Auth\Guard::setRequest($request);
  1747. }
  1748. /**
  1749. * Get the last user we attempted to authenticate.
  1750. *
  1751. * @return \Illuminate\Auth\UserInterface
  1752. * @static
  1753. */
  1754. public static function getLastAttempted(){
  1755. //Method inherited from \Illuminate\Auth\Guard
  1756. return \Illuminate\Auth\Guard::getLastAttempted();
  1757. }
  1758. /**
  1759. * Get a unique identifier for the auth session value.
  1760. *
  1761. * @return string
  1762. * @static
  1763. */
  1764. public static function getName(){
  1765. //Method inherited from \Illuminate\Auth\Guard
  1766. return \Illuminate\Auth\Guard::getName();
  1767. }
  1768. /**
  1769. * Get the name of the cookie used to store the "recaller".
  1770. *
  1771. * @return string
  1772. * @static
  1773. */
  1774. public static function getRecallerName(){
  1775. //Method inherited from \Illuminate\Auth\Guard
  1776. return \Illuminate\Auth\Guard::getRecallerName();
  1777. }
  1778. /**
  1779. * Determine if the user was authenticated via "remember me" cookie.
  1780. *
  1781. * @return bool
  1782. * @static
  1783. */
  1784. public static function viaRemember(){
  1785. //Method inherited from \Illuminate\Auth\Guard
  1786. return \Illuminate\Auth\Guard::viaRemember();
  1787. }
  1788. }
  1789. class Blade extends \Illuminate\Support\Facades\Blade{
  1790. /**
  1791. * Compile the view at the given path.
  1792. *
  1793. * @param string $path
  1794. * @return void
  1795. * @static
  1796. */
  1797. public static function compile($path = null){
  1798. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1799. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1800. }
  1801. /**
  1802. * Get the path currently being compiled.
  1803. *
  1804. * @return string
  1805. * @static
  1806. */
  1807. public static function getPath(){
  1808. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1809. return \Illuminate\View\Compilers\BladeCompiler::getPath();
  1810. }
  1811. /**
  1812. * Set the path currently being compiled.
  1813. *
  1814. * @param string $path
  1815. * @return void
  1816. * @static
  1817. */
  1818. public static function setPath($path){
  1819. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1820. \Illuminate\View\Compilers\BladeCompiler::setPath($path);
  1821. }
  1822. /**
  1823. * Compile the given Blade template contents.
  1824. *
  1825. * @param string $value
  1826. * @return string
  1827. * @static
  1828. */
  1829. public static function compileString($value){
  1830. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1831. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1832. }
  1833. /**
  1834. * Register a custom Blade compiler.
  1835. *
  1836. * @param Closure $compiler
  1837. * @return void
  1838. * @static
  1839. */
  1840. public static function extend($compiler){
  1841. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1842. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1843. }
  1844. /**
  1845. * Compile the default values for the echo statement.
  1846. *
  1847. * @param string $value
  1848. * @return string
  1849. * @static
  1850. */
  1851. public static function compileEchoDefaults($value){
  1852. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1853. return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
  1854. }
  1855. /**
  1856. * Get the regular expression for a generic Blade function.
  1857. *
  1858. * @param string $function
  1859. * @return string
  1860. * @static
  1861. */
  1862. public static function createMatcher($function){
  1863. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1864. return \Illuminate\View\Compilers\BladeCompiler::createMatcher($function);
  1865. }
  1866. /**
  1867. * Get the regular expression for a generic Blade function.
  1868. *
  1869. * @param string $function
  1870. * @return string
  1871. * @static
  1872. */
  1873. public static function createOpenMatcher($function){
  1874. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1875. return \Illuminate\View\Compilers\BladeCompiler::createOpenMatcher($function);
  1876. }
  1877. /**
  1878. * Create a plain Blade matcher.
  1879. *
  1880. * @param string $function
  1881. * @return string
  1882. * @static
  1883. */
  1884. public static function createPlainMatcher($function){
  1885. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1886. return \Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
  1887. }
  1888. /**
  1889. * Sets the content tags used for the compiler.
  1890. *
  1891. * @param string $openTag
  1892. * @param string $closeTag
  1893. * @param bool $escaped
  1894. * @return void
  1895. * @static
  1896. */
  1897. public static function setContentTags($openTag, $closeTag, $escaped = false){
  1898. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1899. \Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
  1900. }
  1901. /**
  1902. * Sets the escaped content tags used for the compiler.
  1903. *
  1904. * @param string $openTag
  1905. * @param string $closeTag
  1906. * @return void
  1907. * @static
  1908. */
  1909. public static function setEscapedContentTags($openTag, $closeTag){
  1910. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1911. \Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
  1912. }
  1913. /**
  1914. * Gets the content tags used for the compiler.
  1915. *
  1916. * @return string
  1917. * @static
  1918. */
  1919. public static function getContentTags(){
  1920. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1921. return \Illuminate\View\Compilers\BladeCompiler::getContentTags();
  1922. }
  1923. /**
  1924. * Gets the escaped content tags used for the compiler.
  1925. *
  1926. * @return string
  1927. * @static
  1928. */
  1929. public static function getEscapedContentTags(){
  1930. //Method inherited from \Illuminate\View\Compilers\BladeCompiler
  1931. return \Illuminate\View\Compilers\BladeCompiler::getEscapedContentTags();
  1932. }
  1933. /**
  1934. * Create a new compiler instance.
  1935. *
  1936. * @param \Illuminate\Filesystem\Filesystem $files
  1937. * @param string $cachePath
  1938. * @return void
  1939. * @static
  1940. */
  1941. public static function __construct($files, $cachePath){
  1942. //Method inherited from \Illuminate\View\Compilers\Compiler
  1943. \Illuminate\View\Compilers\BladeCompiler::__construct($files, $cachePath);
  1944. }
  1945. /**
  1946. * Get the path to the compiled version of a view.
  1947. *
  1948. * @param string $path
  1949. * @return string
  1950. * @static
  1951. */
  1952. public static function getCompiledPath($path){
  1953. //Method inherited from \Illuminate\View\Compilers\Compiler
  1954. return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  1955. }
  1956. /**
  1957. * Determine if the view at the given path is expired.
  1958. *
  1959. * @param string $path
  1960. * @return bool
  1961. * @static
  1962. */
  1963. public static function isExpired($path){
  1964. //Method inherited from \Illuminate\View\Compilers\Compiler
  1965. return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  1966. }
  1967. }
  1968. class Cache extends \Illuminate\Support\Facades\Cache{
  1969. /**
  1970. * Get the cache "prefix" value.
  1971. *
  1972. * @return string
  1973. * @static
  1974. */
  1975. public static function getPrefix(){
  1976. //Method inherited from \Illuminate\Cache\CacheManager
  1977. return \Illuminate\Cache\CacheManager::getPrefix();
  1978. }
  1979. /**
  1980. * Set the cache "prefix" value.
  1981. *
  1982. * @param string $name
  1983. * @return void
  1984. * @static
  1985. */
  1986. public static function setPrefix($name){
  1987. //Method inherited from \Illuminate\Cache\CacheManager
  1988. \Illuminate\Cache\CacheManager::setPrefix($name);
  1989. }
  1990. /**
  1991. * Get the default cache driver name.
  1992. *
  1993. * @return string
  1994. * @static
  1995. */
  1996. public static function getDefaultDriver(){
  1997. //Method inherited from \Illuminate\Cache\CacheManager
  1998. return \Illuminate\Cache\CacheManager::getDefaultDriver();
  1999. }
  2000. /**
  2001. * Set the default cache driver name.
  2002. *
  2003. * @param string $name
  2004. * @return void
  2005. * @static
  2006. */
  2007. public static function setDefaultDriver($name){
  2008. //Method inherited from \Illuminate\Cache\CacheManager
  2009. \Illuminate\Cache\CacheManager::setDefaultDriver($name);
  2010. }
  2011. /**
  2012. * Create a new manager instance.
  2013. *
  2014. * @param \Illuminate\Foundation\Application $app
  2015. * @return void
  2016. * @static
  2017. */
  2018. public static function __construct($app){
  2019. //Method inherited from \Illuminate\Support\Manager
  2020. \Illuminate\Cache\CacheManager::__construct($app);
  2021. }
  2022. /**
  2023. * Get a driver instance.
  2024. *
  2025. * @param string $driver
  2026. * @return mixed
  2027. * @static
  2028. */
  2029. public static function driver($driver = null){
  2030. //Method inherited from \Illuminate\Support\Manager
  2031. return \Illuminate\Cache\CacheManager::driver($driver);
  2032. }
  2033. /**
  2034. * Register a custom driver creator Closure.
  2035. *
  2036. * @param string $driver
  2037. * @param Closure $callback
  2038. * @return \Illuminate\Support\Manager|static
  2039. * @static
  2040. */
  2041. public static function extend($driver, $callback){
  2042. //Method inherited from \Illuminate\Support\Manager
  2043. return \Illuminate\Cache\CacheManager::extend($driver, $callback);
  2044. }
  2045. /**
  2046. * Get all of the created "drivers".
  2047. *
  2048. * @return array
  2049. * @static
  2050. */
  2051. public static function getDrivers(){
  2052. //Method inherited from \Illuminate\Support\Manager
  2053. return \Illuminate\Cache\CacheManager::getDrivers();
  2054. }
  2055. /**
  2056. * Dynamically call the default driver instance.
  2057. *
  2058. * @param string $method
  2059. * @param array $parameters
  2060. * @return mixed
  2061. * @static
  2062. */
  2063. public static function __call($method, $parameters){
  2064. //Method inherited from \Illuminate\Support\Manager
  2065. return \Illuminate\Cache\CacheManager::__call($method, $parameters);
  2066. }
  2067. /**
  2068. * Determine if an item exists in the cache.
  2069. *
  2070. * @param string $key
  2071. * @return bool
  2072. * @static
  2073. */
  2074. public static function has($key){
  2075. //Method inherited from \Illuminate\Cache\Repository
  2076. return \Illuminate\Cache\Repository::has($key);
  2077. }
  2078. /**
  2079. * Retrieve an item from the cache by key.
  2080. *
  2081. * @param string $key
  2082. * @param mixed $default
  2083. * @return mixed
  2084. * @static
  2085. */
  2086. public static function get($key, $default = null){
  2087. //Method inherited from \Illuminate\Cache\Repository
  2088. return \Illuminate\Cache\Repository::get($key, $default);
  2089. }
  2090. /**
  2091. * Store an item in the cache.
  2092. *
  2093. * @param string $key
  2094. * @param mixed $value
  2095. * @param \DateTime|int $minutes
  2096. * @return void
  2097. * @static
  2098. */
  2099. public static function put($key, $value, $minutes){
  2100. //Method inherited from \Illuminate\Cache\Repository
  2101. \Illuminate\Cache\Repository::put($key, $value, $minutes);
  2102. }
  2103. /**
  2104. * Store an item in the cache if the key does not exist.
  2105. *
  2106. * @param string $key
  2107. * @param mixed $value
  2108. * @param \DateTime|int $minutes
  2109. * @return bool
  2110. * @static
  2111. */
  2112. public static function add($key, $value, $minutes){
  2113. //Method inherited from \Illuminate\Cache\Repository
  2114. return \Illuminate\Cache\Repository::add($key, $value, $minutes);
  2115. }
  2116. /**
  2117. * Get an item from the cache, or store the default value.
  2118. *
  2119. * @param string $key
  2120. * @param \DateTime|int $minutes
  2121. * @param Closure $callback
  2122. * @return mixed
  2123. * @static
  2124. */
  2125. public static function remember($key, $minutes, $callback){
  2126. //Method inherited from \Illuminate\Cache\Repository
  2127. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  2128. }
  2129. /**
  2130. * Get an item from the cache, or store the default value forever.
  2131. *
  2132. * @param string $key
  2133. * @param Closure $callback
  2134. * @return mixed
  2135. * @static
  2136. */
  2137. public static function sear($key, $callback){
  2138. //Method inherited from \Illuminate\Cache\Repository
  2139. return \Illuminate\Cache\Repository::sear($key, $callback);
  2140. }
  2141. /**
  2142. * Get an item from the cache, or store the default value forever.
  2143. *
  2144. * @param string $key
  2145. * @param Closure $callback
  2146. * @return mixed
  2147. * @static
  2148. */
  2149. public static function rememberForever($key, $callback){
  2150. //Method inherited from \Illuminate\Cache\Repository
  2151. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  2152. }
  2153. /**
  2154. * Get the default cache time.
  2155. *
  2156. * @return int
  2157. * @static
  2158. */
  2159. public static function getDefaultCacheTime(){
  2160. //Method inherited from \Illuminate\Cache\Repository
  2161. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  2162. }
  2163. /**
  2164. * Set the default cache time in minutes.
  2165. *
  2166. * @param int $minutes
  2167. * @return void
  2168. * @static
  2169. */
  2170. public static function setDefaultCacheTime($minutes){
  2171. //Method inherited from \Illuminate\Cache\Repository
  2172. \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  2173. }
  2174. /**
  2175. * Get the cache store implementation.
  2176. *
  2177. * @return \Illuminate\Cache\StoreInterface
  2178. * @static
  2179. */
  2180. public static function getStore(){
  2181. //Method inherited from \Illuminate\Cache\Repository
  2182. return \Illuminate\Cache\Repository::getStore();
  2183. }
  2184. /**
  2185. * Determine if a cached value exists.
  2186. *
  2187. * @param string $key
  2188. * @return bool
  2189. * @static
  2190. */
  2191. public static function offsetExists($key){
  2192. //Method inherited from \Illuminate\Cache\Repository
  2193. return \Illuminate\Cache\Repository::offsetExists($key);
  2194. }
  2195. /**
  2196. * Retrieve an item from the cache by key.
  2197. *
  2198. * @param string $key
  2199. * @return mixed
  2200. * @static
  2201. */
  2202. public static function offsetGet($key){
  2203. //Method inherited from \Illuminate\Cache\Repository
  2204. return \Illuminate\Cache\Repository::offsetGet($key);
  2205. }
  2206. /**
  2207. * Store an item in the cache for the default time.
  2208. *
  2209. * @param string $key
  2210. * @param mixed $value
  2211. * @return void
  2212. * @static
  2213. */
  2214. public static function offsetSet($key, $value){
  2215. //Method inherited from \Illuminate\Cache\Repository
  2216. \Illuminate\Cache\Repository::offsetSet($key, $value);
  2217. }
  2218. /**
  2219. * Remove an item from the cache.
  2220. *
  2221. * @param string $key
  2222. * @return void
  2223. * @static
  2224. */
  2225. public static function offsetUnset($key){
  2226. //Method inherited from \Illuminate\Cache\Repository
  2227. \Illuminate\Cache\Repository::offsetUnset($key);
  2228. }
  2229. /**
  2230. * Register a macro with the Cache class.
  2231. *
  2232. * @param string $name
  2233. * @param callable $callback
  2234. * @return void
  2235. * @static
  2236. */
  2237. public static function macro($name, $callback){
  2238. //Method inherited from \Illuminate\Cache\Repository
  2239. \Illuminate\Cache\Repository::macro($name, $callback);
  2240. }
  2241. /**
  2242. * Increment the value of an item in the cache.
  2243. *
  2244. * @param string $key
  2245. * @param mixed $value
  2246. * @return void
  2247. * @throws \LogicException
  2248. * @static
  2249. */
  2250. public static function increment($key, $value = 1){
  2251. //Method inherited from \Illuminate\Cache\FileStore
  2252. \Illuminate\Cache\FileStore::increment($key, $value);
  2253. }
  2254. /**
  2255. * Decrement the value of an item in the cache.
  2256. *
  2257. * @param string $key
  2258. * @param mixed $value
  2259. * @return void
  2260. * @throws \LogicException
  2261. * @static
  2262. */
  2263. public static function decrement($key, $value = 1){
  2264. //Method inherited from \Illuminate\Cache\FileStore
  2265. \Illuminate\Cache\FileStore::decrement($key, $value);
  2266. }
  2267. /**
  2268. * Store an item in the cache indefinitely.
  2269. *
  2270. * @param string $key
  2271. * @param mixed $value
  2272. * @return void
  2273. * @static
  2274. */
  2275. public static function forever($key, $value){
  2276. //Method inherited from \Illuminate\Cache\FileStore
  2277. \Illuminate\Cache\FileStore::forever($key, $value);
  2278. }
  2279. /**
  2280. * Remove an item from the cache.
  2281. *
  2282. * @param string $key
  2283. * @return void
  2284. * @static
  2285. */
  2286. public static function forget($key){
  2287. //Method inherited from \Illuminate\Cache\FileStore
  2288. \Illuminate\Cache\FileStore::forget($key);
  2289. }
  2290. /**
  2291. * Remove all items from the cache.
  2292. *
  2293. * @return void
  2294. * @static
  2295. */
  2296. public static function flush(){
  2297. //Method inherited from \Illuminate\Cache\FileStore
  2298. \Illuminate\Cache\FileStore::flush();
  2299. }
  2300. /**
  2301. * Get the Filesystem instance.
  2302. *
  2303. * @return \Illuminate\Filesystem\Filesystem
  2304. * @static
  2305. */
  2306. public static function getFilesystem(){
  2307. //Method inherited from \Illuminate\Cache\FileStore
  2308. return \Illuminate\Cache\FileStore::getFilesystem();
  2309. }
  2310. /**
  2311. * Get the working directory of the cache.
  2312. *
  2313. * @return string
  2314. * @static
  2315. */
  2316. public static function getDirectory(){
  2317. //Method inherited from \Illuminate\Cache\FileStore
  2318. return \Illuminate\Cache\FileStore::getDirectory();
  2319. }
  2320. }
  2321. class ClassLoader extends \Illuminate\Support\ClassLoader{
  2322. }
  2323. class Config extends \Illuminate\Support\Facades\Config{
  2324. /**
  2325. * Create a new configuration repository.
  2326. *
  2327. * @param \Illuminate\Config\LoaderInterface $loader
  2328. * @param string $environment
  2329. * @return void
  2330. * @static
  2331. */
  2332. public static function __construct($loader, $environment){
  2333. //Method inherited from \Illuminate\Config\Repository
  2334. \Illuminate\Config\Repository::__construct($loader, $environment);
  2335. }
  2336. /**
  2337. * Determine if the given configuration value exists.
  2338. *
  2339. * @param string $key
  2340. * @return bool
  2341. * @static
  2342. */
  2343. public static function has($key){
  2344. //Method inherited from \Illuminate\Config\Repository
  2345. return \Illuminate\Config\Repository::has($key);
  2346. }
  2347. /**
  2348. * Determine if a configuration group exists.
  2349. *
  2350. * @param string $key
  2351. * @return bool
  2352. * @static
  2353. */
  2354. public static function hasGroup($key){
  2355. //Method inherited from \Illuminate\Config\Repository
  2356. return \Illuminate\Config\Repository::hasGroup($key);
  2357. }
  2358. /**
  2359. * Get the specified configuration value.
  2360. *
  2361. * @param string $key
  2362. * @param mixed $default
  2363. * @return mixed
  2364. * @static
  2365. */
  2366. public static function get($key, $default = null){
  2367. //Method inherited from \Illuminate\Config\Repository
  2368. return \Illuminate\Config\Repository::get($key, $default);
  2369. }
  2370. /**
  2371. * Set a given configuration value.
  2372. *
  2373. * @param string $key
  2374. * @param mixed $value
  2375. * @return void
  2376. * @static
  2377. */
  2378. public static function set($key, $value){
  2379. //Method inherited from \Illuminate\Config\Repository
  2380. \Illuminate\Config\Repository::set($key, $value);
  2381. }
  2382. /**
  2383. * Register a package for cascading configuration.
  2384. *
  2385. * @param string $package
  2386. * @param string $hint
  2387. * @param string $namespace
  2388. * @return void
  2389. * @static
  2390. */
  2391. public static function package($package, $hint, $namespace = null){
  2392. //Method inherited from \Illuminate\Config\Repository
  2393. \Illuminate\Config\Repository::package($package, $hint, $namespace);
  2394. }
  2395. /**
  2396. * Register an after load callback for a given namespace.
  2397. *
  2398. * @param string $namespace
  2399. * @param \Closure $callback
  2400. * @return void
  2401. * @static
  2402. */
  2403. public static function afterLoading($namespace, $callback){
  2404. //Method inherited from \Illuminate\Config\Repository
  2405. \Illuminate\Config\Repository::afterLoading($namespace, $callback);
  2406. }
  2407. /**
  2408. * Add a new namespace to the loader.
  2409. *
  2410. * @param string $namespace
  2411. * @param string $hint
  2412. * @return void
  2413. * @static
  2414. */
  2415. public static function addNamespace($namespace, $hint){
  2416. //Method inherited from \Illuminate\Config\Repository
  2417. \Illuminate\Config\Repository::addNamespace($namespace, $hint);
  2418. }
  2419. /**
  2420. * Returns all registered namespaces with the config
  2421. * loader.
  2422. *
  2423. * @return array
  2424. * @static
  2425. */
  2426. public static function getNamespaces(){
  2427. //Method inherited from \Illuminate\Config\Repository
  2428. return \Illuminate\Config\Repository::getNamespaces();
  2429. }
  2430. /**
  2431. * Get the loader implementation.
  2432. *
  2433. * @return \Illuminate\Config\LoaderInterface
  2434. * @static
  2435. */
  2436. public static function getLoader(){
  2437. //Method inherited from \Illuminate\Config\Repository
  2438. return \Illuminate\Config\Repository::getLoader();
  2439. }
  2440. /**
  2441. * Set the loader implementation.
  2442. *
  2443. * @param \Illuminate\Config\LoaderInterface $loader
  2444. * @return void
  2445. * @static
  2446. */
  2447. public static function setLoader($loader){
  2448. //Method inherited from \Illuminate\Config\Repository
  2449. \Illuminate\Config\Repository::setLoader($loader);
  2450. }
  2451. /**
  2452. * Get the current configuration environment.
  2453. *
  2454. * @return string
  2455. * @static
  2456. */
  2457. public static function getEnvironment(){
  2458. //Method inherited from \Illuminate\Config\Repository
  2459. return \Illuminate\Config\Repository::getEnvironment();
  2460. }
  2461. /**
  2462. * Get the after load callback array.
  2463. *
  2464. * @return array
  2465. * @static
  2466. */
  2467. public static function getAfterLoadCallbacks(){
  2468. //Method inherited from \Illuminate\Config\Repository
  2469. return \Illuminate\Config\Repository::getAfterLoadCallbacks();
  2470. }
  2471. /**
  2472. * Get all of the configuration items.
  2473. *
  2474. * @return array
  2475. * @static
  2476. */
  2477. public static function getItems(){
  2478. //Method inherited from \Illuminate\Config\Repository
  2479. return \Illuminate\Config\Repository::getItems();
  2480. }
  2481. /**
  2482. * Determine if the given configuration option exists.
  2483. *
  2484. * @param string $key
  2485. * @return bool
  2486. * @static
  2487. */
  2488. public static function offsetExists($key){
  2489. //Method inherited from \Illuminate\Config\Repository
  2490. return \Illuminate\Config\Repository::offsetExists($key);
  2491. }
  2492. /**
  2493. * Get a configuration option.
  2494. *
  2495. * @param string $key
  2496. * @return mixed
  2497. * @static
  2498. */
  2499. public static function offsetGet($key){
  2500. //Method inherited from \Illuminate\Config\Repository
  2501. return \Illuminate\Config\Repository::offsetGet($key);
  2502. }
  2503. /**
  2504. * Set a configuration option.
  2505. *
  2506. * @param string $key
  2507. * @param mixed $value
  2508. * @return void
  2509. * @static
  2510. */
  2511. public static function offsetSet($key, $value){
  2512. //Method inherited from \Illuminate\Config\Repository
  2513. \Illuminate\Config\Repository::offsetSet($key, $value);
  2514. }
  2515. /**
  2516. * Unset a configuration option.
  2517. *
  2518. * @param string $key
  2519. * @return void
  2520. * @static
  2521. */
  2522. public static function offsetUnset($key){
  2523. //Method inherited from \Illuminate\Config\Repository
  2524. \Illuminate\Config\Repository::offsetUnset($key);
  2525. }
  2526. /**
  2527. * Parse a key into namespace, group, and item.
  2528. *
  2529. * @param string $key
  2530. * @return array
  2531. * @static
  2532. */
  2533. public static function parseKey($key){
  2534. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  2535. return \Illuminate\Config\Repository::parseKey($key);
  2536. }
  2537. /**
  2538. * Set the parsed value of a key.
  2539. *
  2540. * @param string $key
  2541. * @param array $parsed
  2542. * @return void
  2543. * @static
  2544. */
  2545. public static function setParsedKey($key, $parsed){
  2546. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  2547. \Illuminate\Config\Repository::setParsedKey($key, $parsed);
  2548. }
  2549. }
  2550. class Controller extends \Illuminate\Routing\Controller{
  2551. }
  2552. class Cookie extends \Illuminate\Support\Facades\Cookie{
  2553. /**
  2554. * Create a new cookie instance.
  2555. *
  2556. * @param string $name
  2557. * @param string $value
  2558. * @param int $minutes
  2559. * @param string $path
  2560. * @param string $domain
  2561. * @param bool $secure
  2562. * @param bool $httpOnly
  2563. * @return \Symfony\Component\HttpFoundation\Cookie
  2564. * @static
  2565. */
  2566. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
  2567. //Method inherited from \Illuminate\Cookie\CookieJar
  2568. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  2569. }
  2570. /**
  2571. * Create a cookie that lasts "forever" (five years).
  2572. *
  2573. * @param string $name
  2574. * @param string $value
  2575. * @param string $path
  2576. * @param string $domain
  2577. * @param bool $secure
  2578. * @param bool $httpOnly
  2579. * @return \Symfony\Component\HttpFoundation\Cookie
  2580. * @static
  2581. */
  2582. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
  2583. //Method inherited from \Illuminate\Cookie\CookieJar
  2584. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  2585. }
  2586. /**
  2587. * Expire the given cookie.
  2588. *
  2589. * @param string $name
  2590. * @param string $path
  2591. * @param string $domain
  2592. * @return \Symfony\Component\HttpFoundation\Cookie
  2593. * @static
  2594. */
  2595. public static function forget($name, $path = null, $domain = null){
  2596. //Method inherited from \Illuminate\Cookie\CookieJar
  2597. return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
  2598. }
  2599. /**
  2600. * Determine if a cookie has been queued.
  2601. *
  2602. * @param string $key
  2603. * @return bool
  2604. * @static
  2605. */
  2606. public static function hasQueued($key){
  2607. //Method inherited from \Illuminate\Cookie\CookieJar
  2608. return \Illuminate\Cookie\CookieJar::hasQueued($key);
  2609. }
  2610. /**
  2611. * Get a queued cookie instance.
  2612. *
  2613. * @param string $key
  2614. * @param mixed $default
  2615. * @return \Symfony\Component\HttpFoundation\Cookie
  2616. * @static
  2617. */
  2618. public static function queued($key, $default = null){
  2619. //Method inherited from \Illuminate\Cookie\CookieJar
  2620. return \Illuminate\Cookie\CookieJar::queued($key, $default);
  2621. }
  2622. /**
  2623. * Queue a cookie to send with the next response.
  2624. *
  2625. * @param dynamic
  2626. * @return void
  2627. * @static
  2628. */
  2629. public static function queue(){
  2630. //Method inherited from \Illuminate\Cookie\CookieJar
  2631. \Illuminate\Cookie\CookieJar::queue();
  2632. }
  2633. /**
  2634. * Remove a cookie from the queue.
  2635. *
  2636. * @param $cookieName
  2637. * @static
  2638. */
  2639. public static function unqueue($name){
  2640. //Method inherited from \Illuminate\Cookie\CookieJar
  2641. \Illuminate\Cookie\CookieJar::unqueue($name);
  2642. }
  2643. /**
  2644. * Set the default path and domain for the jar.
  2645. *
  2646. * @param string $path
  2647. * @param string $domain
  2648. * @return self
  2649. * @static
  2650. */
  2651. public static function setDefaultPathAndDomain($path, $domain){
  2652. //Method inherited from \Illuminate\Cookie\CookieJar
  2653. return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain);
  2654. }
  2655. /**
  2656. * Get the cookies which have been queued for the next request
  2657. *
  2658. * @return array
  2659. * @static
  2660. */
  2661. public static function getQueuedCookies(){
  2662. //Method inherited from \Illuminate\Cookie\CookieJar
  2663. return \Illuminate\Cookie\CookieJar::getQueuedCookies();
  2664. }
  2665. }
  2666. class Crypt extends \Illuminate\Support\Facades\Crypt{
  2667. /**
  2668. * Create a new encrypter instance.
  2669. *
  2670. * @param string $key
  2671. * @return void
  2672. * @static
  2673. */
  2674. public static function __construct($key){
  2675. //Method inherited from \Illuminate\Encryption\Encrypter
  2676. \Illuminate\Encryption\Encrypter::__construct($key);
  2677. }
  2678. /**
  2679. * Encrypt the given value.
  2680. *
  2681. * @param string $value
  2682. * @return string
  2683. * @static
  2684. */
  2685. public static function encrypt($value){
  2686. //Method inherited from \Illuminate\Encryption\Encrypter
  2687. return \Illuminate\Encryption\Encrypter::encrypt($value);
  2688. }
  2689. /**
  2690. * Decrypt the given value.
  2691. *
  2692. * @param string $payload
  2693. * @return string
  2694. * @static
  2695. */
  2696. public static function decrypt($payload){
  2697. //Method inherited from \Illuminate\Encryption\Encrypter
  2698. return \Illuminate\Encryption\Encrypter::decrypt($payload);
  2699. }
  2700. /**
  2701. * Set the encryption key.
  2702. *
  2703. * @param string $key
  2704. * @return void
  2705. * @static
  2706. */
  2707. public static function setKey($key){
  2708. //Method inherited from \Illuminate\Encryption\Encrypter
  2709. \Illuminate\Encryption\Encrypter::setKey($key);
  2710. }
  2711. /**
  2712. * Set the encryption cipher.
  2713. *
  2714. * @param string $cipher
  2715. * @return void
  2716. * @static
  2717. */
  2718. public static function setCipher($cipher){
  2719. //Method inherited from \Illuminate\Encryption\Encrypter
  2720. \Illuminate\Encryption\Encrypter::setCipher($cipher);
  2721. }
  2722. /**
  2723. * Set the encryption mode.
  2724. *
  2725. * @param string $mode
  2726. * @return void
  2727. * @static
  2728. */
  2729. public static function setMode($mode){
  2730. //Method inherited from \Illuminate\Encryption\Encrypter
  2731. \Illuminate\Encryption\Encrypter::setMode($mode);
  2732. }
  2733. }
  2734. class DB extends \Illuminate\Support\Facades\DB{
  2735. /**
  2736. * Create a new database manager instance.
  2737. *
  2738. * @param \Illuminate\Foundation\Application $app
  2739. * @param \Illuminate\Database\Connectors\ConnectionFactory $factory
  2740. * @return void
  2741. * @static
  2742. */
  2743. public static function __construct($app, $factory){
  2744. //Method inherited from \Illuminate\Database\DatabaseManager
  2745. \Illuminate\Database\DatabaseManager::__construct($app, $factory);
  2746. }
  2747. /**
  2748. * Get a database connection instance.
  2749. *
  2750. * @param string $name
  2751. * @return \Illuminate\Database\Connection
  2752. * @static
  2753. */
  2754. public static function connection($name = null){
  2755. //Method inherited from \Illuminate\Database\DatabaseManager
  2756. return \Illuminate\Database\DatabaseManager::connection($name);
  2757. }
  2758. /**
  2759. * Reconnect to the given database.
  2760. *
  2761. * @param string $name
  2762. * @return \Illuminate\Database\Connection
  2763. * @static
  2764. */
  2765. public static function reconnect($name = null){
  2766. //Method inherited from \Illuminate\Database\DatabaseManager
  2767. return \Illuminate\Database\DatabaseManager::reconnect($name);
  2768. }
  2769. /**
  2770. * Disconnect from the given database.
  2771. *
  2772. * @param string $name
  2773. * @return void
  2774. * @static
  2775. */
  2776. public static function disconnect($name = null){
  2777. //Method inherited from \Illuminate\Database\DatabaseManager
  2778. \Illuminate\Database\DatabaseManager::disconnect($name);
  2779. }
  2780. /**
  2781. * Get the default connection name.
  2782. *
  2783. * @return string
  2784. * @static
  2785. */
  2786. public static function getDefaultConnection(){
  2787. //Method inherited from \Illuminate\Database\DatabaseManager
  2788. return \Illuminate\Database\DatabaseManager::getDefaultConnection();
  2789. }
  2790. /**
  2791. * Set the default connection name.
  2792. *
  2793. * @param string $name
  2794. * @return void
  2795. * @static
  2796. */
  2797. public static function setDefaultConnection($name){
  2798. //Method inherited from \Illuminate\Database\DatabaseManager
  2799. \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  2800. }
  2801. /**
  2802. * Register an extension connection resolver.
  2803. *
  2804. * @param string $name
  2805. * @param callable $resolver
  2806. * @return void
  2807. * @static
  2808. */
  2809. public static function extend($name, $resolver){
  2810. //Method inherited from \Illuminate\Database\DatabaseManager
  2811. \Illuminate\Database\DatabaseManager::extend($name, $resolver);
  2812. }
  2813. /**
  2814. * Return all of the created connections.
  2815. *
  2816. * @return array
  2817. * @static
  2818. */
  2819. public static function getConnections(){
  2820. //Method inherited from \Illuminate\Database\DatabaseManager
  2821. return \Illuminate\Database\DatabaseManager::getConnections();
  2822. }
  2823. /**
  2824. * Dynamically pass methods to the default connection.
  2825. *
  2826. * @param string $method
  2827. * @param array $parameters
  2828. * @return mixed
  2829. * @static
  2830. */
  2831. public static function __call($method, $parameters){
  2832. //Method inherited from \Illuminate\Database\DatabaseManager
  2833. return \Illuminate\Database\DatabaseManager::__call($method, $parameters);
  2834. }
  2835. /**
  2836. * Set the query grammar to the default implementation.
  2837. *
  2838. * @return void
  2839. * @static
  2840. */
  2841. public static function useDefaultQueryGrammar(){
  2842. //Method inherited from \Illuminate\Database\Connection
  2843. \Illuminate\Database\SQLiteConnection::useDefaultQueryGrammar();
  2844. }
  2845. /**
  2846. * Set the schema grammar to the default implementation.
  2847. *
  2848. * @return void
  2849. * @static
  2850. */
  2851. public static function useDefaultSchemaGrammar(){
  2852. //Method inherited from \Illuminate\Database\Connection
  2853. \Illuminate\Database\SQLiteConnection::useDefaultSchemaGrammar();
  2854. }
  2855. /**
  2856. * Set the query post processor to the default implementation.
  2857. *
  2858. * @return void
  2859. * @static
  2860. */
  2861. public static function useDefaultPostProcessor(){
  2862. //Method inherited from \Illuminate\Database\Connection
  2863. \Illuminate\Database\SQLiteConnection::useDefaultPostProcessor();
  2864. }
  2865. /**
  2866. * Get a schema builder instance for the connection.
  2867. *
  2868. * @return \Illuminate\Database\Schema\Builder
  2869. * @static
  2870. */
  2871. public static function getSchemaBuilder(){
  2872. //Method inherited from \Illuminate\Database\Connection
  2873. return \Illuminate\Database\SQLiteConnection::getSchemaBuilder();
  2874. }
  2875. /**
  2876. * Begin a fluent query against a database table.
  2877. *
  2878. * @param string $table
  2879. * @return \Illuminate\Database\Query\Builder
  2880. * @static
  2881. */
  2882. public static function table($table){
  2883. //Method inherited from \Illuminate\Database\Connection
  2884. return \Illuminate\Database\SQLiteConnection::table($table);
  2885. }
  2886. /**
  2887. * Get a new raw query expression.
  2888. *
  2889. * @param mixed $value
  2890. * @return \Illuminate\Database\Query\Expression
  2891. * @static
  2892. */
  2893. public static function raw($value){
  2894. //Method inherited from \Illuminate\Database\Connection
  2895. return \Illuminate\Database\SQLiteConnection::raw($value);
  2896. }
  2897. /**
  2898. * Run a select statement and return a single result.
  2899. *
  2900. * @param string $query
  2901. * @param array $bindings
  2902. * @return mixed
  2903. * @static
  2904. */
  2905. public static function selectOne($query, $bindings = array()){
  2906. //Method inherited from \Illuminate\Database\Connection
  2907. return \Illuminate\Database\SQLiteConnection::selectOne($query, $bindings);
  2908. }
  2909. /**
  2910. * Run a select statement against the database.
  2911. *
  2912. * @param string $query
  2913. * @param array $bindings
  2914. * @return array
  2915. * @static
  2916. */
  2917. public static function select($query, $bindings = array()){
  2918. //Method inherited from \Illuminate\Database\Connection
  2919. return \Illuminate\Database\SQLiteConnection::select($query, $bindings);
  2920. }
  2921. /**
  2922. * Run an insert statement against the database.
  2923. *
  2924. * @param string $query
  2925. * @param array $bindings
  2926. * @return bool
  2927. * @static
  2928. */
  2929. public static function insert($query, $bindings = array()){
  2930. //Method inherited from \Illuminate\Database\Connection
  2931. return \Illuminate\Database\SQLiteConnection::insert($query, $bindings);
  2932. }
  2933. /**
  2934. * Run an update statement against the database.
  2935. *
  2936. * @param string $query
  2937. * @param array $bindings
  2938. * @return int
  2939. * @static
  2940. */
  2941. public static function update($query, $bindings = array()){
  2942. //Method inherited from \Illuminate\Database\Connection
  2943. return \Illuminate\Database\SQLiteConnection::update($query, $bindings);
  2944. }
  2945. /**
  2946. * Run a delete statement against the database.
  2947. *
  2948. * @param string $query
  2949. * @param array $bindings
  2950. * @return int
  2951. * @static
  2952. */
  2953. public static function delete($query, $bindings = array()){
  2954. //Method inherited from \Illuminate\Database\Connection
  2955. return \Illuminate\Database\SQLiteConnection::delete($query, $bindings);
  2956. }
  2957. /**
  2958. * Execute an SQL statement and return the boolean result.
  2959. *
  2960. * @param string $query
  2961. * @param array $bindings
  2962. * @return bool
  2963. * @static
  2964. */
  2965. public static function statement($query, $bindings = array()){
  2966. //Method inherited from \Illuminate\Database\Connection
  2967. return \Illuminate\Database\SQLiteConnection::statement($query, $bindings);
  2968. }
  2969. /**
  2970. * Run an SQL statement and get the number of rows affected.
  2971. *
  2972. * @param string $query
  2973. * @param array $bindings
  2974. * @return int
  2975. * @static
  2976. */
  2977. public static function affectingStatement($query, $bindings = array()){
  2978. //Method inherited from \Illuminate\Database\Connection
  2979. return \Illuminate\Database\SQLiteConnection::affectingStatement($query, $bindings);
  2980. }
  2981. /**
  2982. * Run a raw, unprepared query against the PDO connection.
  2983. *
  2984. * @param string $query
  2985. * @return bool
  2986. * @static
  2987. */
  2988. public static function unprepared($query){
  2989. //Method inherited from \Illuminate\Database\Connection
  2990. return \Illuminate\Database\SQLiteConnection::unprepared($query);
  2991. }
  2992. /**
  2993. * Prepare the query bindings for execution.
  2994. *
  2995. * @param array $bindings
  2996. * @return array
  2997. * @static
  2998. */
  2999. public static function prepareBindings($bindings){
  3000. //Method inherited from \Illuminate\Database\Connection
  3001. return \Illuminate\Database\SQLiteConnection::prepareBindings($bindings);
  3002. }
  3003. /**
  3004. * Execute a Closure within a transaction.
  3005. *
  3006. * @param Closure $callback
  3007. * @return mixed
  3008. * @throws \Exception
  3009. * @static
  3010. */
  3011. public static function transaction($callback){
  3012. //Method inherited from \Illuminate\Database\Connection
  3013. return \Illuminate\Database\SQLiteConnection::transaction($callback);
  3014. }
  3015. /**
  3016. * Start a new database transaction.
  3017. *
  3018. * @return void
  3019. * @static
  3020. */
  3021. public static function beginTransaction(){
  3022. //Method inherited from \Illuminate\Database\Connection
  3023. \Illuminate\Database\SQLiteConnection::beginTransaction();
  3024. }
  3025. /**
  3026. * Commit the active database transaction.
  3027. *
  3028. * @return void
  3029. * @static
  3030. */
  3031. public static function commit(){
  3032. //Method inherited from \Illuminate\Database\Connection
  3033. \Illuminate\Database\SQLiteConnection::commit();
  3034. }
  3035. /**
  3036. * Rollback the active database transaction.
  3037. *
  3038. * @return void
  3039. * @static
  3040. */
  3041. public static function rollBack(){
  3042. //Method inherited from \Illuminate\Database\Connection
  3043. \Illuminate\Database\SQLiteConnection::rollBack();
  3044. }
  3045. /**
  3046. * Get the number of active transactions.
  3047. *
  3048. * @return int
  3049. * @static
  3050. */
  3051. public static function transactionLevel(){
  3052. //Method inherited from \Illuminate\Database\Connection
  3053. return \Illuminate\Database\SQLiteConnection::transactionLevel();
  3054. }
  3055. /**
  3056. * Execute the given callback in "dry run" mode.
  3057. *
  3058. * @param Closure $callback
  3059. * @return array
  3060. * @static
  3061. */
  3062. public static function pretend($callback){
  3063. //Method inherited from \Illuminate\Database\Connection
  3064. return \Illuminate\Database\SQLiteConnection::pretend($callback);
  3065. }
  3066. /**
  3067. * Log a query in the connection's query log.
  3068. *
  3069. * @param string $query
  3070. * @param array $bindings
  3071. * @param $time
  3072. * @return void
  3073. * @static
  3074. */
  3075. public static function logQuery($query, $bindings, $time = null){
  3076. //Method inherited from \Illuminate\Database\Connection
  3077. \Illuminate\Database\SQLiteConnection::logQuery($query, $bindings, $time);
  3078. }
  3079. /**
  3080. * Register a database query listener with the connection.
  3081. *
  3082. * @param Closure $callback
  3083. * @return void
  3084. * @static
  3085. */
  3086. public static function listen($callback){
  3087. //Method inherited from \Illuminate\Database\Connection
  3088. \Illuminate\Database\SQLiteConnection::listen($callback);
  3089. }
  3090. /**
  3091. * Get a Doctrine Schema Column instance.
  3092. *
  3093. * @param string $table
  3094. * @param string $column
  3095. * @return \Doctrine\DBAL\Schema\Column
  3096. * @static
  3097. */
  3098. public static function getDoctrineColumn($table, $column){
  3099. //Method inherited from \Illuminate\Database\Connection
  3100. return \Illuminate\Database\SQLiteConnection::getDoctrineColumn($table, $column);
  3101. }
  3102. /**
  3103. * Get the Doctrine DBAL schema manager for the connection.
  3104. *
  3105. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3106. * @static
  3107. */
  3108. public static function getDoctrineSchemaManager(){
  3109. //Method inherited from \Illuminate\Database\Connection
  3110. return \Illuminate\Database\SQLiteConnection::getDoctrineSchemaManager();
  3111. }
  3112. /**
  3113. * Get the Doctrine DBAL database connection instance.
  3114. *
  3115. * @return \Doctrine\DBAL\Connection
  3116. * @static
  3117. */
  3118. public static function getDoctrineConnection(){
  3119. //Method inherited from \Illuminate\Database\Connection
  3120. return \Illuminate\Database\SQLiteConnection::getDoctrineConnection();
  3121. }
  3122. /**
  3123. * Get the current PDO connection.
  3124. *
  3125. * @return PDO
  3126. * @static
  3127. */
  3128. public static function getPdo(){
  3129. //Method inherited from \Illuminate\Database\Connection
  3130. return \Illuminate\Database\SQLiteConnection::getPdo();
  3131. }
  3132. /**
  3133. * Get the current PDO connection used for reading.
  3134. *
  3135. * @return PDO
  3136. * @static
  3137. */
  3138. public static function getReadPdo(){
  3139. //Method inherited from \Illuminate\Database\Connection
  3140. return \Illuminate\Database\SQLiteConnection::getReadPdo();
  3141. }
  3142. /**
  3143. * Set the PDO connection.
  3144. *
  3145. * @param PDO $pdo
  3146. * @return \Illuminate\Database\Connection
  3147. * @static
  3148. */
  3149. public static function setPdo($pdo){
  3150. //Method inherited from \Illuminate\Database\Connection
  3151. return \Illuminate\Database\SQLiteConnection::setPdo($pdo);
  3152. }
  3153. /**
  3154. * Set the PDO connection used for reading.
  3155. *
  3156. * @param PDO $pdo
  3157. * @return \Illuminate\Database\Connection
  3158. * @static
  3159. */
  3160. public static function setReadPdo($pdo){
  3161. //Method inherited from \Illuminate\Database\Connection
  3162. return \Illuminate\Database\SQLiteConnection::setReadPdo($pdo);
  3163. }
  3164. /**
  3165. * Get the database connection name.
  3166. *
  3167. * @return string|null
  3168. * @static
  3169. */
  3170. public static function getName(){
  3171. //Method inherited from \Illuminate\Database\Connection
  3172. return \Illuminate\Database\SQLiteConnection::getName();
  3173. }
  3174. /**
  3175. * Get an option from the configuration options.
  3176. *
  3177. * @param string $option
  3178. * @return mixed
  3179. * @static
  3180. */
  3181. public static function getConfig($option){
  3182. //Method inherited from \Illuminate\Database\Connection
  3183. return \Illuminate\Database\SQLiteConnection::getConfig($option);
  3184. }
  3185. /**
  3186. * Get the PDO driver name.
  3187. *
  3188. * @return string
  3189. * @static
  3190. */
  3191. public static function getDriverName(){
  3192. //Method inherited from \Illuminate\Database\Connection
  3193. return \Illuminate\Database\SQLiteConnection::getDriverName();
  3194. }
  3195. /**
  3196. * Get the query grammar used by the connection.
  3197. *
  3198. * @return \Illuminate\Database\Query\Grammars\Grammar
  3199. * @static
  3200. */
  3201. public static function getQueryGrammar(){
  3202. //Method inherited from \Illuminate\Database\Connection
  3203. return \Illuminate\Database\SQLiteConnection::getQueryGrammar();
  3204. }
  3205. /**
  3206. * Set the query grammar used by the connection.
  3207. *
  3208. * @param \Illuminate\Database\Query\Grammars\Grammar
  3209. * @return void
  3210. * @static
  3211. */
  3212. public static function setQueryGrammar($grammar){
  3213. //Method inherited from \Illuminate\Database\Connection
  3214. \Illuminate\Database\SQLiteConnection::setQueryGrammar($grammar);
  3215. }
  3216. /**
  3217. * Get the schema grammar used by the connection.
  3218. *
  3219. * @return \Illuminate\Database\Query\Grammars\Grammar
  3220. * @static
  3221. */
  3222. public static function getSchemaGrammar(){
  3223. //Method inherited from \Illuminate\Database\Connection
  3224. return \Illuminate\Database\SQLiteConnection::getSchemaGrammar();
  3225. }
  3226. /**
  3227. * Set the schema grammar used by the connection.
  3228. *
  3229. * @param \Illuminate\Database\Schema\Grammars\Grammar
  3230. * @return void
  3231. * @static
  3232. */
  3233. public static function setSchemaGrammar($grammar){
  3234. //Method inherited from \Illuminate\Database\Connection
  3235. \Illuminate\Database\SQLiteConnection::setSchemaGrammar($grammar);
  3236. }
  3237. /**
  3238. * Get the query post processor used by the connection.
  3239. *
  3240. * @return \Illuminate\Database\Query\Processors\Processor
  3241. * @static
  3242. */
  3243. public static function getPostProcessor(){
  3244. //Method inherited from \Illuminate\Database\Connection
  3245. return \Illuminate\Database\SQLiteConnection::getPostProcessor();
  3246. }
  3247. /**
  3248. * Set the query post processor used by the connection.
  3249. *
  3250. * @param \Illuminate\Database\Query\Processors\Processor
  3251. * @return void
  3252. * @static
  3253. */
  3254. public static function setPostProcessor($processor){
  3255. //Method inherited from \Illuminate\Database\Connection
  3256. \Illuminate\Database\SQLiteConnection::setPostProcessor($processor);
  3257. }
  3258. /**
  3259. * Get the event dispatcher used by the connection.
  3260. *
  3261. * @return \Illuminate\Events\Dispatcher
  3262. * @static
  3263. */
  3264. public static function getEventDispatcher(){
  3265. //Method inherited from \Illuminate\Database\Connection
  3266. return \Illuminate\Database\SQLiteConnection::getEventDispatcher();
  3267. }
  3268. /**
  3269. * Set the event dispatcher instance on the connection.
  3270. *
  3271. * @param \Illuminate\Events\Dispatcher
  3272. * @return void
  3273. * @static
  3274. */
  3275. public static function setEventDispatcher($events){
  3276. //Method inherited from \Illuminate\Database\Connection
  3277. \Illuminate\Database\SQLiteConnection::setEventDispatcher($events);
  3278. }
  3279. /**
  3280. * Get the paginator environment instance.
  3281. *
  3282. * @return \Illuminate\Pagination\Environment
  3283. * @static
  3284. */
  3285. public static function getPaginator(){
  3286. //Method inherited from \Illuminate\Database\Connection
  3287. return \Illuminate\Database\SQLiteConnection::getPaginator();
  3288. }
  3289. /**
  3290. * Set the pagination environment instance.
  3291. *
  3292. * @param \Illuminate\Pagination\Environment|\Closure $paginator
  3293. * @return void
  3294. * @static
  3295. */
  3296. public static function setPaginator($paginator){
  3297. //Method inherited from \Illuminate\Database\Connection
  3298. \Illuminate\Database\SQLiteConnection::setPaginator($paginator);
  3299. }
  3300. /**
  3301. * Get the cache manager instance.
  3302. *
  3303. * @return \Illuminate\Cache\CacheManager
  3304. * @static
  3305. */
  3306. public static function getCacheManager(){
  3307. //Method inherited from \Illuminate\Database\Connection
  3308. return \Illuminate\Database\SQLiteConnection::getCacheManager();
  3309. }
  3310. /**
  3311. * Set the cache manager instance on the connection.
  3312. *
  3313. * @param \Illuminate\Cache\CacheManager|\Closure $cache
  3314. * @return void
  3315. * @static
  3316. */
  3317. public static function setCacheManager($cache){
  3318. //Method inherited from \Illuminate\Database\Connection
  3319. \Illuminate\Database\SQLiteConnection::setCacheManager($cache);
  3320. }
  3321. /**
  3322. * Determine if the connection in a "dry run".
  3323. *
  3324. * @return bool
  3325. * @static
  3326. */
  3327. public static function pretending(){
  3328. //Method inherited from \Illuminate\Database\Connection
  3329. return \Illuminate\Database\SQLiteConnection::pretending();
  3330. }
  3331. /**
  3332. * Get the default fetch mode for the connection.
  3333. *
  3334. * @return int
  3335. * @static
  3336. */
  3337. public static function getFetchMode(){
  3338. //Method inherited from \Illuminate\Database\Connection
  3339. return \Illuminate\Database\SQLiteConnection::getFetchMode();
  3340. }
  3341. /**
  3342. * Set the default fetch mode for the connection.
  3343. *
  3344. * @param int $fetchMode
  3345. * @return int
  3346. * @static
  3347. */
  3348. public static function setFetchMode($fetchMode){
  3349. //Method inherited from \Illuminate\Database\Connection
  3350. return \Illuminate\Database\SQLiteConnection::setFetchMode($fetchMode);
  3351. }
  3352. /**
  3353. * Get the connection query log.
  3354. *
  3355. * @return array
  3356. * @static
  3357. */
  3358. public static function getQueryLog(){
  3359. //Method inherited from \Illuminate\Database\Connection
  3360. return \Illuminate\Database\SQLiteConnection::getQueryLog();
  3361. }
  3362. /**
  3363. * Clear the query log.
  3364. *
  3365. * @return void
  3366. * @static
  3367. */
  3368. public static function flushQueryLog(){
  3369. //Method inherited from \Illuminate\Database\Connection
  3370. \Illuminate\Database\SQLiteConnection::flushQueryLog();
  3371. }
  3372. /**
  3373. * Enable the query log on the connection.
  3374. *
  3375. * @return void
  3376. * @static
  3377. */
  3378. public static function enableQueryLog(){
  3379. //Method inherited from \Illuminate\Database\Connection
  3380. \Illuminate\Database\SQLiteConnection::enableQueryLog();
  3381. }
  3382. /**
  3383. * Disable the query log on the connection.
  3384. *
  3385. * @return void
  3386. * @static
  3387. */
  3388. public static function disableQueryLog(){
  3389. //Method inherited from \Illuminate\Database\Connection
  3390. \Illuminate\Database\SQLiteConnection::disableQueryLog();
  3391. }
  3392. /**
  3393. * Determine whether we're logging queries.
  3394. *
  3395. * @return bool
  3396. * @static
  3397. */
  3398. public static function logging(){
  3399. //Method inherited from \Illuminate\Database\Connection
  3400. return \Illuminate\Database\SQLiteConnection::logging();
  3401. }
  3402. /**
  3403. * Get the name of the connected database.
  3404. *
  3405. * @return string
  3406. * @static
  3407. */
  3408. public static function getDatabaseName(){
  3409. //Method inherited from \Illuminate\Database\Connection
  3410. return \Illuminate\Database\SQLiteConnection::getDatabaseName();
  3411. }
  3412. /**
  3413. * Set the name of the connected database.
  3414. *
  3415. * @param string $database
  3416. * @return string
  3417. * @static
  3418. */
  3419. public static function setDatabaseName($database){
  3420. //Method inherited from \Illuminate\Database\Connection
  3421. return \Illuminate\Database\SQLiteConnection::setDatabaseName($database);
  3422. }
  3423. /**
  3424. * Get the table prefix for the connection.
  3425. *
  3426. * @return string
  3427. * @static
  3428. */
  3429. public static function getTablePrefix(){
  3430. //Method inherited from \Illuminate\Database\Connection
  3431. return \Illuminate\Database\SQLiteConnection::getTablePrefix();
  3432. }
  3433. /**
  3434. * Set the table prefix in use by the connection.
  3435. *
  3436. * @param string $prefix
  3437. * @return void
  3438. * @static
  3439. */
  3440. public static function setTablePrefix($prefix){
  3441. //Method inherited from \Illuminate\Database\Connection
  3442. \Illuminate\Database\SQLiteConnection::setTablePrefix($prefix);
  3443. }
  3444. /**
  3445. * Set the table prefix and return the grammar.
  3446. *
  3447. * @param \Illuminate\Database\Grammar $grammar
  3448. * @return \Illuminate\Database\Grammar
  3449. * @static
  3450. */
  3451. public static function withTablePrefix($grammar){
  3452. //Method inherited from \Illuminate\Database\Connection
  3453. return \Illuminate\Database\SQLiteConnection::withTablePrefix($grammar);
  3454. }
  3455. }
  3456. class Eloquent extends \Illuminate\Database\Eloquent\Model{
  3457. /**
  3458. * Find a model by its primary key.
  3459. *
  3460. * @param array $id
  3461. * @param array $columns
  3462. * @return \Illuminate\Database\Eloquent\Model|Collection|static
  3463. * @static
  3464. */
  3465. public static function findMany($id, $columns = array()){
  3466. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3467. return \Illuminate\Database\Eloquent\Builder::findMany($id, $columns);
  3468. }
  3469. /**
  3470. * Execute the query and get the first result.
  3471. *
  3472. * @param array $columns
  3473. * @return \Illuminate\Database\Eloquent\Model|static|null
  3474. * @static
  3475. */
  3476. public static function first($columns = array()){
  3477. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3478. return \Illuminate\Database\Eloquent\Builder::first($columns);
  3479. }
  3480. /**
  3481. * Execute the query and get the first result or throw an exception.
  3482. *
  3483. * @param array $columns
  3484. * @return \Illuminate\Database\Eloquent\Model|static
  3485. * @throws ModelNotFoundException
  3486. * @static
  3487. */
  3488. public static function firstOrFail($columns = array()){
  3489. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3490. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  3491. }
  3492. /**
  3493. * Execute the query as a "select" statement.
  3494. *
  3495. * @param array $columns
  3496. * @return \Illuminate\Database\Eloquent\Collection|static[]
  3497. * @static
  3498. */
  3499. public static function get($columns = array()){
  3500. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3501. return \Illuminate\Database\Eloquent\Builder::get($columns);
  3502. }
  3503. /**
  3504. * Pluck a single column from the database.
  3505. *
  3506. * @param string $column
  3507. * @return mixed
  3508. * @static
  3509. */
  3510. public static function pluck($column){
  3511. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3512. return \Illuminate\Database\Eloquent\Builder::pluck($column);
  3513. }
  3514. /**
  3515. * Chunk the results of the query.
  3516. *
  3517. * @param int $count
  3518. * @param callable $callback
  3519. * @return void
  3520. * @static
  3521. */
  3522. public static function chunk($count, $callback){
  3523. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3524. \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  3525. }
  3526. /**
  3527. * Get an array with the values of a given column.
  3528. *
  3529. * @param string $column
  3530. * @param string $key
  3531. * @return array
  3532. * @static
  3533. */
  3534. public static function lists($column, $key = null){
  3535. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3536. return \Illuminate\Database\Eloquent\Builder::lists($column, $key);
  3537. }
  3538. /**
  3539. * Get a paginator for the "select" statement.
  3540. *
  3541. * @param int $perPage
  3542. * @param array $columns
  3543. * @return \Illuminate\Pagination\Paginator
  3544. * @static
  3545. */
  3546. public static function paginate($perPage = null, $columns = array()){
  3547. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3548. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns);
  3549. }
  3550. /**
  3551. * Increment a column's value by a given amount.
  3552. *
  3553. * @param string $column
  3554. * @param int $amount
  3555. * @param array $extra
  3556. * @return int
  3557. * @static
  3558. */
  3559. public static function increment($column, $amount = 1, $extra = array()){
  3560. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3561. return \Illuminate\Database\Eloquent\Builder::increment($column, $amount, $extra);
  3562. }
  3563. /**
  3564. * Decrement a column's value by a given amount.
  3565. *
  3566. * @param string $column
  3567. * @param int $amount
  3568. * @param array $extra
  3569. * @return int
  3570. * @static
  3571. */
  3572. public static function decrement($column, $amount = 1, $extra = array()){
  3573. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3574. return \Illuminate\Database\Eloquent\Builder::decrement($column, $amount, $extra);
  3575. }
  3576. /**
  3577. * Get the hydrated models without eager loading.
  3578. *
  3579. * @param array $columns
  3580. * @return array|static[]
  3581. * @static
  3582. */
  3583. public static function getModels($columns = array()){
  3584. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3585. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  3586. }
  3587. /**
  3588. * Eager load the relationships for the models.
  3589. *
  3590. * @param array $models
  3591. * @return array
  3592. * @static
  3593. */
  3594. public static function eagerLoadRelations($models){
  3595. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3596. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  3597. }
  3598. /**
  3599. * Add a basic where clause to the query.
  3600. *
  3601. * @param string $column
  3602. * @param string $operator
  3603. * @param mixed $value
  3604. * @param string $boolean
  3605. * @return \Illuminate\Database\Eloquent\Builder|static
  3606. * @static
  3607. */
  3608. public static function where($column, $operator = null, $value = null, $boolean = 'and'){
  3609. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3610. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  3611. }
  3612. /**
  3613. * Add an "or where" clause to the query.
  3614. *
  3615. * @param string $column
  3616. * @param string $operator
  3617. * @param mixed $value
  3618. * @return \Illuminate\Database\Eloquent\Builder|static
  3619. * @static
  3620. */
  3621. public static function orWhere($column, $operator = null, $value = null){
  3622. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3623. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  3624. }
  3625. /**
  3626. * Add a relationship count condition to the query.
  3627. *
  3628. * @param string $relation
  3629. * @param string $operator
  3630. * @param int $count
  3631. * @param string $boolean
  3632. * @param \Closure $callback
  3633. * @return \Illuminate\Database\Eloquent\Builder|static
  3634. * @static
  3635. */
  3636. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null){
  3637. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3638. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  3639. }
  3640. /**
  3641. * Add a relationship count condition to the query with where clauses.
  3642. *
  3643. * @param string $relation
  3644. * @param \Closure $callback
  3645. * @param string $operator
  3646. * @param int $count
  3647. * @return \Illuminate\Database\Eloquent\Builder|static
  3648. * @static
  3649. */
  3650. public static function whereHas($relation, $callback, $operator = '>=', $count = 1){
  3651. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3652. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  3653. }
  3654. /**
  3655. * Add a relationship count condition to the query with an "or".
  3656. *
  3657. * @param string $relation
  3658. * @param string $operator
  3659. * @param int $count
  3660. * @return \Illuminate\Database\Eloquent\Builder|static
  3661. * @static
  3662. */
  3663. public static function orHas($relation, $operator = '>=', $count = 1){
  3664. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3665. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  3666. }
  3667. /**
  3668. * Add a relationship count condition to the query with where clauses and an "or".
  3669. *
  3670. * @param string $relation
  3671. * @param \Closure $callback
  3672. * @param string $operator
  3673. * @param int $count
  3674. * @return \Illuminate\Database\Eloquent\Builder|static
  3675. * @static
  3676. */
  3677. public static function orWhereHas($relation, $callback, $operator = '>=', $count = 1){
  3678. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3679. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  3680. }
  3681. /**
  3682. * Get the underlying query builder instance.
  3683. *
  3684. * @return \Illuminate\Database\Query\Builder|static
  3685. * @static
  3686. */
  3687. public static function getQuery(){
  3688. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3689. return \Illuminate\Database\Eloquent\Builder::getQuery();
  3690. }
  3691. /**
  3692. * Set the underlying query builder instance.
  3693. *
  3694. * @param \Illuminate\Database\Query\Builder $query
  3695. * @return void
  3696. * @static
  3697. */
  3698. public static function setQuery($query){
  3699. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3700. \Illuminate\Database\Eloquent\Builder::setQuery($query);
  3701. }
  3702. /**
  3703. * Get the relationships being eagerly loaded.
  3704. *
  3705. * @return array
  3706. * @static
  3707. */
  3708. public static function getEagerLoads(){
  3709. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3710. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  3711. }
  3712. /**
  3713. * Set the relationships being eagerly loaded.
  3714. *
  3715. * @param array $eagerLoad
  3716. * @return void
  3717. * @static
  3718. */
  3719. public static function setEagerLoads($eagerLoad){
  3720. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3721. \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  3722. }
  3723. /**
  3724. * Get the model instance being queried.
  3725. *
  3726. * @return \Illuminate\Database\Eloquent\Model
  3727. * @static
  3728. */
  3729. public static function getModel(){
  3730. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3731. return \Illuminate\Database\Eloquent\Builder::getModel();
  3732. }
  3733. /**
  3734. * Set a model instance for the model being queried.
  3735. *
  3736. * @param \Illuminate\Database\Eloquent\Model $model
  3737. * @return \Illuminate\Database\Eloquent\Builder
  3738. * @static
  3739. */
  3740. public static function setModel($model){
  3741. //Method inherited from \Illuminate\Database\Eloquent\Builder
  3742. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  3743. }
  3744. /**
  3745. * Set the columns to be selected.
  3746. *
  3747. * @param array $columns
  3748. * @return \Illuminate\Database\Query\Builder|static
  3749. * @static
  3750. */
  3751. public static function select($columns = array()){
  3752. //Method inherited from \Illuminate\Database\Query\Builder
  3753. return \Illuminate\Database\Query\Builder::select($columns);
  3754. }
  3755. /**
  3756. * Add a new "raw" select expression to the query.
  3757. *
  3758. * @param string $expression
  3759. * @return \Illuminate\Database\Query\Builder|static
  3760. * @static
  3761. */
  3762. public static function selectRaw($expression){
  3763. //Method inherited from \Illuminate\Database\Query\Builder
  3764. return \Illuminate\Database\Query\Builder::selectRaw($expression);
  3765. }
  3766. /**
  3767. * Add a new select column to the query.
  3768. *
  3769. * @param mixed $column
  3770. * @return \Illuminate\Database\Query\Builder|static
  3771. * @static
  3772. */
  3773. public static function addSelect($column){
  3774. //Method inherited from \Illuminate\Database\Query\Builder
  3775. return \Illuminate\Database\Query\Builder::addSelect($column);
  3776. }
  3777. /**
  3778. * Force the query to only return distinct results.
  3779. *
  3780. * @return \Illuminate\Database\Query\Builder|static
  3781. * @static
  3782. */
  3783. public static function distinct(){
  3784. //Method inherited from \Illuminate\Database\Query\Builder
  3785. return \Illuminate\Database\Query\Builder::distinct();
  3786. }
  3787. /**
  3788. * Set the table which the query is targeting.
  3789. *
  3790. * @param string $table
  3791. * @return \Illuminate\Database\Query\Builder|static
  3792. * @static
  3793. */
  3794. public static function from($table){
  3795. //Method inherited from \Illuminate\Database\Query\Builder
  3796. return \Illuminate\Database\Query\Builder::from($table);
  3797. }
  3798. /**
  3799. * Add a join clause to the query.
  3800. *
  3801. * @param string $table
  3802. * @param string $first
  3803. * @param string $operator
  3804. * @param string $two
  3805. * @param string $type
  3806. * @param bool $where
  3807. * @return \Illuminate\Database\Query\Builder|static
  3808. * @static
  3809. */
  3810. public static function join($table, $one, $operator = null, $two = null, $type = 'inner', $where = false){
  3811. //Method inherited from \Illuminate\Database\Query\Builder
  3812. return \Illuminate\Database\Query\Builder::join($table, $one, $operator, $two, $type, $where);
  3813. }
  3814. /**
  3815. * Add a "join where" clause to the query.
  3816. *
  3817. * @param string $table
  3818. * @param string $first
  3819. * @param string $operator
  3820. * @param string $two
  3821. * @param string $type
  3822. * @return \Illuminate\Database\Query\Builder|static
  3823. * @static
  3824. */
  3825. public static function joinWhere($table, $one, $operator, $two, $type = 'inner'){
  3826. //Method inherited from \Illuminate\Database\Query\Builder
  3827. return \Illuminate\Database\Query\Builder::joinWhere($table, $one, $operator, $two, $type);
  3828. }
  3829. /**
  3830. * Add a left join to the query.
  3831. *
  3832. * @param string $table
  3833. * @param string $first
  3834. * @param string $operator
  3835. * @param string $second
  3836. * @return \Illuminate\Database\Query\Builder|static
  3837. * @static
  3838. */
  3839. public static function leftJoin($table, $first, $operator = null, $second = null){
  3840. //Method inherited from \Illuminate\Database\Query\Builder
  3841. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  3842. }
  3843. /**
  3844. * Add a "join where" clause to the query.
  3845. *
  3846. * @param string $table
  3847. * @param string $first
  3848. * @param string $operator
  3849. * @param string $two
  3850. * @return \Illuminate\Database\Query\Builder|static
  3851. * @static
  3852. */
  3853. public static function leftJoinWhere($table, $one, $operator, $two){
  3854. //Method inherited from \Illuminate\Database\Query\Builder
  3855. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $one, $operator, $two);
  3856. }
  3857. /**
  3858. * Add a raw where clause to the query.
  3859. *
  3860. * @param string $sql
  3861. * @param array $bindings
  3862. * @param string $boolean
  3863. * @return \Illuminate\Database\Query\Builder|static
  3864. * @static
  3865. */
  3866. public static function whereRaw($sql, $bindings = array(), $boolean = 'and'){
  3867. //Method inherited from \Illuminate\Database\Query\Builder
  3868. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  3869. }
  3870. /**
  3871. * Add a raw or where clause to the query.
  3872. *
  3873. * @param string $sql
  3874. * @param array $bindings
  3875. * @return \Illuminate\Database\Query\Builder|static
  3876. * @static
  3877. */
  3878. public static function orWhereRaw($sql, $bindings = array()){
  3879. //Method inherited from \Illuminate\Database\Query\Builder
  3880. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  3881. }
  3882. /**
  3883. * Add a where between statement to the query.
  3884. *
  3885. * @param string $column
  3886. * @param array $values
  3887. * @param string $boolean
  3888. * @param bool $not
  3889. * @return \Illuminate\Database\Query\Builder|static
  3890. * @static
  3891. */
  3892. public static function whereBetween($column, $values, $boolean = 'and', $not = false){
  3893. //Method inherited from \Illuminate\Database\Query\Builder
  3894. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  3895. }
  3896. /**
  3897. * Add an or where between statement to the query.
  3898. *
  3899. * @param string $column
  3900. * @param array $values
  3901. * @return \Illuminate\Database\Query\Builder|static
  3902. * @static
  3903. */
  3904. public static function orWhereBetween($column, $values){
  3905. //Method inherited from \Illuminate\Database\Query\Builder
  3906. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  3907. }
  3908. /**
  3909. * Add a where not between statement to the query.
  3910. *
  3911. * @param string $column
  3912. * @param array $values
  3913. * @param string $boolean
  3914. * @return \Illuminate\Database\Query\Builder|static
  3915. * @static
  3916. */
  3917. public static function whereNotBetween($column, $values, $boolean = 'and'){
  3918. //Method inherited from \Illuminate\Database\Query\Builder
  3919. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  3920. }
  3921. /**
  3922. * Add an or where not between statement to the query.
  3923. *
  3924. * @param string $column
  3925. * @param array $values
  3926. * @return \Illuminate\Database\Query\Builder|static
  3927. * @static
  3928. */
  3929. public static function orWhereNotBetween($column, $values){
  3930. //Method inherited from \Illuminate\Database\Query\Builder
  3931. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  3932. }
  3933. /**
  3934. * Add a nested where statement to the query.
  3935. *
  3936. * @param \Closure $callback
  3937. * @param string $boolean
  3938. * @return \Illuminate\Database\Query\Builder|static
  3939. * @static
  3940. */
  3941. public static function whereNested($callback, $boolean = 'and'){
  3942. //Method inherited from \Illuminate\Database\Query\Builder
  3943. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  3944. }
  3945. /**
  3946. * Add another query builder as a nested where to the query builder.
  3947. *
  3948. * @param \Illuminate\Database\Query\Builder|static $query
  3949. * @param string $boolean
  3950. * @return \Illuminate\Database\Query\Builder|static
  3951. * @static
  3952. */
  3953. public static function addNestedWhereQuery($query, $boolean = 'and'){
  3954. //Method inherited from \Illuminate\Database\Query\Builder
  3955. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  3956. }
  3957. /**
  3958. * Add an exists clause to the query.
  3959. *
  3960. * @param \Closure $callback
  3961. * @param string $boolean
  3962. * @param bool $not
  3963. * @return \Illuminate\Database\Query\Builder|static
  3964. * @static
  3965. */
  3966. public static function whereExists($callback, $boolean = 'and', $not = false){
  3967. //Method inherited from \Illuminate\Database\Query\Builder
  3968. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  3969. }
  3970. /**
  3971. * Add an or exists clause to the query.
  3972. *
  3973. * @param \Closure $callback
  3974. * @param bool $not
  3975. * @return \Illuminate\Database\Query\Builder|static
  3976. * @static
  3977. */
  3978. public static function orWhereExists($callback, $not = false){
  3979. //Method inherited from \Illuminate\Database\Query\Builder
  3980. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  3981. }
  3982. /**
  3983. * Add a where not exists clause to the query.
  3984. *
  3985. * @param \Closure $callback
  3986. * @param string $boolean
  3987. * @return \Illuminate\Database\Query\Builder|static
  3988. * @static
  3989. */
  3990. public static function whereNotExists($callback, $boolean = 'and'){
  3991. //Method inherited from \Illuminate\Database\Query\Builder
  3992. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  3993. }
  3994. /**
  3995. * Add a where not exists clause to the query.
  3996. *
  3997. * @param \Closure $callback
  3998. * @return \Illuminate\Database\Query\Builder|static
  3999. * @static
  4000. */
  4001. public static function orWhereNotExists($callback){
  4002. //Method inherited from \Illuminate\Database\Query\Builder
  4003. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  4004. }
  4005. /**
  4006. * Add a "where in" clause to the query.
  4007. *
  4008. * @param string $column
  4009. * @param mixed $values
  4010. * @param string $boolean
  4011. * @param bool $not
  4012. * @return \Illuminate\Database\Query\Builder|static
  4013. * @static
  4014. */
  4015. public static function whereIn($column, $values, $boolean = 'and', $not = false){
  4016. //Method inherited from \Illuminate\Database\Query\Builder
  4017. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  4018. }
  4019. /**
  4020. * Add an "or where in" clause to the query.
  4021. *
  4022. * @param string $column
  4023. * @param mixed $values
  4024. * @return \Illuminate\Database\Query\Builder|static
  4025. * @static
  4026. */
  4027. public static function orWhereIn($column, $values){
  4028. //Method inherited from \Illuminate\Database\Query\Builder
  4029. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  4030. }
  4031. /**
  4032. * Add a "where not in" clause to the query.
  4033. *
  4034. * @param string $column
  4035. * @param mixed $values
  4036. * @param string $boolean
  4037. * @return \Illuminate\Database\Query\Builder|static
  4038. * @static
  4039. */
  4040. public static function whereNotIn($column, $values, $boolean = 'and'){
  4041. //Method inherited from \Illuminate\Database\Query\Builder
  4042. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  4043. }
  4044. /**
  4045. * Add an "or where not in" clause to the query.
  4046. *
  4047. * @param string $column
  4048. * @param mixed $values
  4049. * @return \Illuminate\Database\Query\Builder|static
  4050. * @static
  4051. */
  4052. public static function orWhereNotIn($column, $values){
  4053. //Method inherited from \Illuminate\Database\Query\Builder
  4054. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  4055. }
  4056. /**
  4057. * Add a "where null" clause to the query.
  4058. *
  4059. * @param string $column
  4060. * @param string $boolean
  4061. * @param bool $not
  4062. * @return \Illuminate\Database\Query\Builder|static
  4063. * @static
  4064. */
  4065. public static function whereNull($column, $boolean = 'and', $not = false){
  4066. //Method inherited from \Illuminate\Database\Query\Builder
  4067. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  4068. }
  4069. /**
  4070. * Add an "or where null" clause to the query.
  4071. *
  4072. * @param string $column
  4073. * @return \Illuminate\Database\Query\Builder|static
  4074. * @static
  4075. */
  4076. public static function orWhereNull($column){
  4077. //Method inherited from \Illuminate\Database\Query\Builder
  4078. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  4079. }
  4080. /**
  4081. * Add a "where not null" clause to the query.
  4082. *
  4083. * @param string $column
  4084. * @param string $boolean
  4085. * @return \Illuminate\Database\Query\Builder|static
  4086. * @static
  4087. */
  4088. public static function whereNotNull($column, $boolean = 'and'){
  4089. //Method inherited from \Illuminate\Database\Query\Builder
  4090. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  4091. }
  4092. /**
  4093. * Add an "or where not null" clause to the query.
  4094. *
  4095. * @param string $column
  4096. * @return \Illuminate\Database\Query\Builder|static
  4097. * @static
  4098. */
  4099. public static function orWhereNotNull($column){
  4100. //Method inherited from \Illuminate\Database\Query\Builder
  4101. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  4102. }
  4103. /**
  4104. * Add a "where day" statement to the query.
  4105. *
  4106. * @param string $column
  4107. * @param string $operator
  4108. * @param int $value
  4109. * @param string $boolean
  4110. * @return \Illuminate\Database\Query\Builder|static
  4111. * @static
  4112. */
  4113. public static function whereDay($column, $operator, $value, $boolean = 'and'){
  4114. //Method inherited from \Illuminate\Database\Query\Builder
  4115. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  4116. }
  4117. /**
  4118. * Add a "where month" statement to the query.
  4119. *
  4120. * @param string $column
  4121. * @param string $operator
  4122. * @param int $value
  4123. * @param string $boolean
  4124. * @return \Illuminate\Database\Query\Builder|static
  4125. * @static
  4126. */
  4127. public static function whereMonth($column, $operator, $value, $boolean = 'and'){
  4128. //Method inherited from \Illuminate\Database\Query\Builder
  4129. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  4130. }
  4131. /**
  4132. * Add a "where year" statement to the query.
  4133. *
  4134. * @param string $column
  4135. * @param string $operator
  4136. * @param int $value
  4137. * @param string $boolean
  4138. * @return \Illuminate\Database\Query\Builder|static
  4139. * @static
  4140. */
  4141. public static function whereYear($column, $operator, $value, $boolean = 'and'){
  4142. //Method inherited from \Illuminate\Database\Query\Builder
  4143. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  4144. }
  4145. /**
  4146. * Handles dynamic "where" clauses to the query.
  4147. *
  4148. * @param string $method
  4149. * @param string $parameters
  4150. * @return \Illuminate\Database\Query\Builder|static
  4151. * @static
  4152. */
  4153. public static function dynamicWhere($method, $parameters){
  4154. //Method inherited from \Illuminate\Database\Query\Builder
  4155. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  4156. }
  4157. /**
  4158. * Add a "group by" clause to the query.
  4159. *
  4160. * @param dynamic $columns
  4161. * @return \Illuminate\Database\Query\Builder|static
  4162. * @static
  4163. */
  4164. public static function groupBy(){
  4165. //Method inherited from \Illuminate\Database\Query\Builder
  4166. return \Illuminate\Database\Query\Builder::groupBy();
  4167. }
  4168. /**
  4169. * Add a "having" clause to the query.
  4170. *
  4171. * @param string $column
  4172. * @param string $operator
  4173. * @param string $value
  4174. * @return \Illuminate\Database\Query\Builder|static
  4175. * @static
  4176. */
  4177. public static function having($column, $operator = null, $value = null){
  4178. //Method inherited from \Illuminate\Database\Query\Builder
  4179. return \Illuminate\Database\Query\Builder::having($column, $operator, $value);
  4180. }
  4181. /**
  4182. * Add a raw having clause to the query.
  4183. *
  4184. * @param string $sql
  4185. * @param array $bindings
  4186. * @param string $boolean
  4187. * @return \Illuminate\Database\Query\Builder|static
  4188. * @static
  4189. */
  4190. public static function havingRaw($sql, $bindings = array(), $boolean = 'and'){
  4191. //Method inherited from \Illuminate\Database\Query\Builder
  4192. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  4193. }
  4194. /**
  4195. * Add a raw or having clause to the query.
  4196. *
  4197. * @param string $sql
  4198. * @param array $bindings
  4199. * @return \Illuminate\Database\Query\Builder|static
  4200. * @static
  4201. */
  4202. public static function orHavingRaw($sql, $bindings = array()){
  4203. //Method inherited from \Illuminate\Database\Query\Builder
  4204. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  4205. }
  4206. /**
  4207. * Add an "order by" clause to the query.
  4208. *
  4209. * @param string $column
  4210. * @param string $direction
  4211. * @return \Illuminate\Database\Query\Builder|static
  4212. * @static
  4213. */
  4214. public static function orderBy($column, $direction = 'asc'){
  4215. //Method inherited from \Illuminate\Database\Query\Builder
  4216. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  4217. }
  4218. /**
  4219. * Add an "order by" clause for a timestamp to the query.
  4220. *
  4221. * @param string $column
  4222. * @return \Illuminate\Database\Query\Builder|static
  4223. * @static
  4224. */
  4225. public static function latest($column = 'created_at'){
  4226. //Method inherited from \Illuminate\Database\Query\Builder
  4227. return \Illuminate\Database\Query\Builder::latest($column);
  4228. }
  4229. /**
  4230. * Add an "order by" clause for a timestamp to the query.
  4231. *
  4232. * @param string $column
  4233. * @return \Illuminate\Database\Query\Builder|static
  4234. * @static
  4235. */
  4236. public static function oldest($column = 'created_at'){
  4237. //Method inherited from \Illuminate\Database\Query\Builder
  4238. return \Illuminate\Database\Query\Builder::oldest($column);
  4239. }
  4240. /**
  4241. * Add a raw "order by" clause to the query.
  4242. *
  4243. * @param string $sql
  4244. * @param array $bindings
  4245. * @return \Illuminate\Database\Query\Builder|static
  4246. * @static
  4247. */
  4248. public static function orderByRaw($sql, $bindings = array()){
  4249. //Method inherited from \Illuminate\Database\Query\Builder
  4250. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  4251. }
  4252. /**
  4253. * Set the "offset" value of the query.
  4254. *
  4255. * @param int $value
  4256. * @return \Illuminate\Database\Query\Builder|static
  4257. * @static
  4258. */
  4259. public static function offset($value){
  4260. //Method inherited from \Illuminate\Database\Query\Builder
  4261. return \Illuminate\Database\Query\Builder::offset($value);
  4262. }
  4263. /**
  4264. * Alias to set the "offset" value of the query.
  4265. *
  4266. * @param int $value
  4267. * @return \Illuminate\Database\Query\Builder|static
  4268. * @static
  4269. */
  4270. public static function skip($value){
  4271. //Method inherited from \Illuminate\Database\Query\Builder
  4272. return \Illuminate\Database\Query\Builder::skip($value);
  4273. }
  4274. /**
  4275. * Set the "limit" value of the query.
  4276. *
  4277. * @param int $value
  4278. * @return \Illuminate\Database\Query\Builder|static
  4279. * @static
  4280. */
  4281. public static function limit($value){
  4282. //Method inherited from \Illuminate\Database\Query\Builder
  4283. return \Illuminate\Database\Query\Builder::limit($value);
  4284. }
  4285. /**
  4286. * Alias to set the "limit" value of the query.
  4287. *
  4288. * @param int $value
  4289. * @return \Illuminate\Database\Query\Builder|static
  4290. * @static
  4291. */
  4292. public static function take($value){
  4293. //Method inherited from \Illuminate\Database\Query\Builder
  4294. return \Illuminate\Database\Query\Builder::take($value);
  4295. }
  4296. /**
  4297. * Set the limit and offset for a given page.
  4298. *
  4299. * @param int $page
  4300. * @param int $perPage
  4301. * @return \Illuminate\Database\Query\Builder|static
  4302. * @static
  4303. */
  4304. public static function forPage($page, $perPage = 15){
  4305. //Method inherited from \Illuminate\Database\Query\Builder
  4306. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  4307. }
  4308. /**
  4309. * Add a union statement to the query.
  4310. *
  4311. * @param \Illuminate\Database\Query\Builder|\Closure $query
  4312. * @param bool $all
  4313. * @return \Illuminate\Database\Query\Builder|static
  4314. * @static
  4315. */
  4316. public static function union($query, $all = false){
  4317. //Method inherited from \Illuminate\Database\Query\Builder
  4318. return \Illuminate\Database\Query\Builder::union($query, $all);
  4319. }
  4320. /**
  4321. * Add a union all statement to the query.
  4322. *
  4323. * @param \Illuminate\Database\Query\Builder|\Closure $query
  4324. * @return \Illuminate\Database\Query\Builder|static
  4325. * @static
  4326. */
  4327. public static function unionAll($query){
  4328. //Method inherited from \Illuminate\Database\Query\Builder
  4329. return \Illuminate\Database\Query\Builder::unionAll($query);
  4330. }
  4331. /**
  4332. * Lock the selected rows in the table.
  4333. *
  4334. * @param bool $update
  4335. * @return \Illuminate\Database\Query\Builder
  4336. * @static
  4337. */
  4338. public static function lock($value = true){
  4339. //Method inherited from \Illuminate\Database\Query\Builder
  4340. return \Illuminate\Database\Query\Builder::lock($value);
  4341. }
  4342. /**
  4343. * Lock the selected rows in the table for updating.
  4344. *
  4345. * @return \Illuminate\Database\Query\Builder
  4346. * @static
  4347. */
  4348. public static function lockForUpdate(){
  4349. //Method inherited from \Illuminate\Database\Query\Builder
  4350. return \Illuminate\Database\Query\Builder::lockForUpdate();
  4351. }
  4352. /**
  4353. * Share lock the selected rows in the table.
  4354. *
  4355. * @return \Illuminate\Database\Query\Builder
  4356. * @static
  4357. */
  4358. public static function sharedLock(){
  4359. //Method inherited from \Illuminate\Database\Query\Builder
  4360. return \Illuminate\Database\Query\Builder::sharedLock();
  4361. }
  4362. /**
  4363. * Get the SQL representation of the query.
  4364. *
  4365. * @return string
  4366. * @static
  4367. */
  4368. public static function toSql(){
  4369. //Method inherited from \Illuminate\Database\Query\Builder
  4370. return \Illuminate\Database\Query\Builder::toSql();
  4371. }
  4372. /**
  4373. * Indicate that the query results should be cached.
  4374. *
  4375. * @param \DateTime|int $minutes
  4376. * @param string $key
  4377. * @return \Illuminate\Database\Query\Builder|static
  4378. * @static
  4379. */
  4380. public static function remember($minutes, $key = null){
  4381. //Method inherited from \Illuminate\Database\Query\Builder
  4382. return \Illuminate\Database\Query\Builder::remember($minutes, $key);
  4383. }
  4384. /**
  4385. * Indicate that the query results should be cached forever.
  4386. *
  4387. * @param string $key
  4388. * @return \Illuminate\Database\Query\Builder|static
  4389. * @static
  4390. */
  4391. public static function rememberForever($key = null){
  4392. //Method inherited from \Illuminate\Database\Query\Builder
  4393. return \Illuminate\Database\Query\Builder::rememberForever($key);
  4394. }
  4395. /**
  4396. * Indicate that the results, if cached, should use the given cache tags.
  4397. *
  4398. * @param array|dynamic $cacheTags
  4399. * @return \Illuminate\Database\Query\Builder|static
  4400. * @static
  4401. */
  4402. public static function cacheTags($cacheTags){
  4403. //Method inherited from \Illuminate\Database\Query\Builder
  4404. return \Illuminate\Database\Query\Builder::cacheTags($cacheTags);
  4405. }
  4406. /**
  4407. * Indicate that the results, if cached, should use the given cache driver.
  4408. *
  4409. * @param string $cacheDriver
  4410. * @return \Illuminate\Database\Query\Builder|static
  4411. * @static
  4412. */
  4413. public static function cacheDriver($cacheDriver){
  4414. //Method inherited from \Illuminate\Database\Query\Builder
  4415. return \Illuminate\Database\Query\Builder::cacheDriver($cacheDriver);
  4416. }
  4417. /**
  4418. * Execute the query as a fresh "select" statement.
  4419. *
  4420. * @param array $columns
  4421. * @return array|static[]
  4422. * @static
  4423. */
  4424. public static function getFresh($columns = array()){
  4425. //Method inherited from \Illuminate\Database\Query\Builder
  4426. return \Illuminate\Database\Query\Builder::getFresh($columns);
  4427. }
  4428. /**
  4429. * Execute the query as a cached "select" statement.
  4430. *
  4431. * @param array $columns
  4432. * @return array
  4433. * @static
  4434. */
  4435. public static function getCached($columns = array()){
  4436. //Method inherited from \Illuminate\Database\Query\Builder
  4437. return \Illuminate\Database\Query\Builder::getCached($columns);
  4438. }
  4439. /**
  4440. * Get a unique cache key for the complete query.
  4441. *
  4442. * @return string
  4443. * @static
  4444. */
  4445. public static function getCacheKey(){
  4446. //Method inherited from \Illuminate\Database\Query\Builder
  4447. return \Illuminate\Database\Query\Builder::getCacheKey();
  4448. }
  4449. /**
  4450. * Generate the unique cache key for the query.
  4451. *
  4452. * @return string
  4453. * @static
  4454. */
  4455. public static function generateCacheKey(){
  4456. //Method inherited from \Illuminate\Database\Query\Builder
  4457. return \Illuminate\Database\Query\Builder::generateCacheKey();
  4458. }
  4459. /**
  4460. * Concatenate values of a given column as a string.
  4461. *
  4462. * @param string $column
  4463. * @param string $glue
  4464. * @return string
  4465. * @static
  4466. */
  4467. public static function implode($column, $glue = null){
  4468. //Method inherited from \Illuminate\Database\Query\Builder
  4469. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  4470. }
  4471. /**
  4472. * Build a paginator instance from a raw result array.
  4473. *
  4474. * @param \Illuminate\Pagination\Environment $paginator
  4475. * @param array $results
  4476. * @param int $perPage
  4477. * @return \Illuminate\Pagination\Paginator
  4478. * @static
  4479. */
  4480. public static function buildRawPaginator($paginator, $results, $perPage){
  4481. //Method inherited from \Illuminate\Database\Query\Builder
  4482. return \Illuminate\Database\Query\Builder::buildRawPaginator($paginator, $results, $perPage);
  4483. }
  4484. /**
  4485. * Get the count of the total records for pagination.
  4486. *
  4487. * @return int
  4488. * @static
  4489. */
  4490. public static function getPaginationCount(){
  4491. //Method inherited from \Illuminate\Database\Query\Builder
  4492. return \Illuminate\Database\Query\Builder::getPaginationCount();
  4493. }
  4494. /**
  4495. * Determine if any rows exist for the current query.
  4496. *
  4497. * @return bool
  4498. * @static
  4499. */
  4500. public static function exists(){
  4501. //Method inherited from \Illuminate\Database\Query\Builder
  4502. return \Illuminate\Database\Query\Builder::exists();
  4503. }
  4504. /**
  4505. * Retrieve the "count" result of the query.
  4506. *
  4507. * @param string $column
  4508. * @return int
  4509. * @static
  4510. */
  4511. public static function count($column = '*'){
  4512. //Method inherited from \Illuminate\Database\Query\Builder
  4513. return \Illuminate\Database\Query\Builder::count($column);
  4514. }
  4515. /**
  4516. * Retrieve the minimum value of a given column.
  4517. *
  4518. * @param string $column
  4519. * @return mixed
  4520. * @static
  4521. */
  4522. public static function min($column){
  4523. //Method inherited from \Illuminate\Database\Query\Builder
  4524. return \Illuminate\Database\Query\Builder::min($column);
  4525. }
  4526. /**
  4527. * Retrieve the maximum value of a given column.
  4528. *
  4529. * @param string $column
  4530. * @return mixed
  4531. * @static
  4532. */
  4533. public static function max($column){
  4534. //Method inherited from \Illuminate\Database\Query\Builder
  4535. return \Illuminate\Database\Query\Builder::max($column);
  4536. }
  4537. /**
  4538. * Retrieve the sum of the values of a given column.
  4539. *
  4540. * @param string $column
  4541. * @return mixed
  4542. * @static
  4543. */
  4544. public static function sum($column){
  4545. //Method inherited from \Illuminate\Database\Query\Builder
  4546. return \Illuminate\Database\Query\Builder::sum($column);
  4547. }
  4548. /**
  4549. * Retrieve the average of the values of a given column.
  4550. *
  4551. * @param string $column
  4552. * @return mixed
  4553. * @static
  4554. */
  4555. public static function avg($column){
  4556. //Method inherited from \Illuminate\Database\Query\Builder
  4557. return \Illuminate\Database\Query\Builder::avg($column);
  4558. }
  4559. /**
  4560. * Execute an aggregate function on the database.
  4561. *
  4562. * @param string $function
  4563. * @param array $columns
  4564. * @return mixed
  4565. * @static
  4566. */
  4567. public static function aggregate($function, $columns = array()){
  4568. //Method inherited from \Illuminate\Database\Query\Builder
  4569. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  4570. }
  4571. /**
  4572. * Insert a new record into the database.
  4573. *
  4574. * @param array $values
  4575. * @return bool
  4576. * @static
  4577. */
  4578. public static function insert($values){
  4579. //Method inherited from \Illuminate\Database\Query\Builder
  4580. return \Illuminate\Database\Query\Builder::insert($values);
  4581. }
  4582. /**
  4583. * Insert a new record and get the value of the primary key.
  4584. *
  4585. * @param array $values
  4586. * @param string $sequence
  4587. * @return int
  4588. * @static
  4589. */
  4590. public static function insertGetId($values, $sequence = null){
  4591. //Method inherited from \Illuminate\Database\Query\Builder
  4592. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  4593. }
  4594. /**
  4595. * Run a truncate statement on the table.
  4596. *
  4597. * @return void
  4598. * @static
  4599. */
  4600. public static function truncate(){
  4601. //Method inherited from \Illuminate\Database\Query\Builder
  4602. \Illuminate\Database\Query\Builder::truncate();
  4603. }
  4604. /**
  4605. * Merge an array of where clauses and bindings.
  4606. *
  4607. * @param array $wheres
  4608. * @param array $bindings
  4609. * @return void
  4610. * @static
  4611. */
  4612. public static function mergeWheres($wheres, $bindings){
  4613. //Method inherited from \Illuminate\Database\Query\Builder
  4614. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  4615. }
  4616. /**
  4617. * Create a raw database expression.
  4618. *
  4619. * @param mixed $value
  4620. * @return \Illuminate\Database\Query\Expression
  4621. * @static
  4622. */
  4623. public static function raw($value){
  4624. //Method inherited from \Illuminate\Database\Query\Builder
  4625. return \Illuminate\Database\Query\Builder::raw($value);
  4626. }
  4627. /**
  4628. * Get the current query value bindings.
  4629. *
  4630. * @return array
  4631. * @static
  4632. */
  4633. public static function getBindings(){
  4634. //Method inherited from \Illuminate\Database\Query\Builder
  4635. return \Illuminate\Database\Query\Builder::getBindings();
  4636. }
  4637. /**
  4638. * Set the bindings on the query builder.
  4639. *
  4640. * @param array $bindings
  4641. * @return \Illuminate\Database\Query\Builder
  4642. * @static
  4643. */
  4644. public static function setBindings($bindings){
  4645. //Method inherited from \Illuminate\Database\Query\Builder
  4646. return \Illuminate\Database\Query\Builder::setBindings($bindings);
  4647. }
  4648. /**
  4649. * Add a binding to the query.
  4650. *
  4651. * @param mixed $value
  4652. * @return \Illuminate\Database\Query\Builder
  4653. * @static
  4654. */
  4655. public static function addBinding($value){
  4656. //Method inherited from \Illuminate\Database\Query\Builder
  4657. return \Illuminate\Database\Query\Builder::addBinding($value);
  4658. }
  4659. /**
  4660. * Merge an array of bindings into our bindings.
  4661. *
  4662. * @param \Illuminate\Database\Query\Builder $query
  4663. * @return \Illuminate\Database\Query\Builder
  4664. * @static
  4665. */
  4666. public static function mergeBindings($query){
  4667. //Method inherited from \Illuminate\Database\Query\Builder
  4668. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  4669. }
  4670. /**
  4671. * Get the database query processor instance.
  4672. *
  4673. * @return \Illuminate\Database\Query\Processors\Processor
  4674. * @static
  4675. */
  4676. public static function getProcessor(){
  4677. //Method inherited from \Illuminate\Database\Query\Builder
  4678. return \Illuminate\Database\Query\Builder::getProcessor();
  4679. }
  4680. /**
  4681. * Get the query grammar instance.
  4682. *
  4683. * @return \Illuminate\Database\Grammar
  4684. * @static
  4685. */
  4686. public static function getGrammar(){
  4687. //Method inherited from \Illuminate\Database\Query\Builder
  4688. return \Illuminate\Database\Query\Builder::getGrammar();
  4689. }
  4690. }
  4691. class Event extends \Illuminate\Support\Facades\Event{
  4692. /**
  4693. * Create a new event dispatcher instance.
  4694. *
  4695. * @param \Illuminate\Container\Container $container
  4696. * @return void
  4697. * @static
  4698. */
  4699. public static function __construct($container = null){
  4700. //Method inherited from \Illuminate\Events\Dispatcher
  4701. \Illuminate\Events\Dispatcher::__construct($container);
  4702. }
  4703. /**
  4704. * Register an event listener with the dispatcher.
  4705. *
  4706. * @param string|array $event
  4707. * @param mixed $listener
  4708. * @param int $priority
  4709. * @return void
  4710. * @static
  4711. */
  4712. public static function listen($events, $listener, $priority = 0){
  4713. //Method inherited from \Illuminate\Events\Dispatcher
  4714. \Illuminate\Events\Dispatcher::listen($events, $listener, $priority);
  4715. }
  4716. /**
  4717. * Determine if a given event has listeners.
  4718. *
  4719. * @param string $eventName
  4720. * @return bool
  4721. * @static
  4722. */
  4723. public static function hasListeners($eventName){
  4724. //Method inherited from \Illuminate\Events\Dispatcher
  4725. return \Illuminate\Events\Dispatcher::hasListeners($eventName);
  4726. }
  4727. /**
  4728. * Register a queued event and payload.
  4729. *
  4730. * @param string $event
  4731. * @param array $payload
  4732. * @return void
  4733. * @static
  4734. */
  4735. public static function queue($event, $payload = array()){
  4736. //Method inherited from \Illuminate\Events\Dispatcher
  4737. \Illuminate\Events\Dispatcher::queue($event, $payload);
  4738. }
  4739. /**
  4740. * Register an event subscriber with the dispatcher.
  4741. *
  4742. * @param string $subscriber
  4743. * @return void
  4744. * @static
  4745. */
  4746. public static function subscribe($subscriber){
  4747. //Method inherited from \Illuminate\Events\Dispatcher
  4748. \Illuminate\Events\Dispatcher::subscribe($subscriber);
  4749. }
  4750. /**
  4751. * Fire an event until the first non-null response is returned.
  4752. *
  4753. * @param string $event
  4754. * @param array $payload
  4755. * @return mixed
  4756. * @static
  4757. */
  4758. public static function until($event, $payload = array()){
  4759. //Method inherited from \Illuminate\Events\Dispatcher
  4760. return \Illuminate\Events\Dispatcher::until($event, $payload);
  4761. }
  4762. /**
  4763. * Flush a set of queued events.
  4764. *
  4765. * @param string $event
  4766. * @return void
  4767. * @static
  4768. */
  4769. public static function flush($event){
  4770. //Method inherited from \Illuminate\Events\Dispatcher
  4771. \Illuminate\Events\Dispatcher::flush($event);
  4772. }
  4773. /**
  4774. * Get the event that is currently firing.
  4775. *
  4776. * @return string
  4777. * @static
  4778. */
  4779. public static function firing(){
  4780. //Method inherited from \Illuminate\Events\Dispatcher
  4781. return \Illuminate\Events\Dispatcher::firing();
  4782. }
  4783. /**
  4784. * Fire an event and call the listeners.
  4785. *
  4786. * @param string $event
  4787. * @param mixed $payload
  4788. * @param bool $halt
  4789. * @return array|null
  4790. * @static
  4791. */
  4792. public static function fire($event, $payload = array(), $halt = false){
  4793. //Method inherited from \Illuminate\Events\Dispatcher
  4794. return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  4795. }
  4796. /**
  4797. * Get all of the listeners for a given event name.
  4798. *
  4799. * @param string $eventName
  4800. * @return array
  4801. * @static
  4802. */
  4803. public static function getListeners($eventName){
  4804. //Method inherited from \Illuminate\Events\Dispatcher
  4805. return \Illuminate\Events\Dispatcher::getListeners($eventName);
  4806. }
  4807. /**
  4808. * Register an event listener with the dispatcher.
  4809. *
  4810. * @param mixed $listener
  4811. * @return mixed
  4812. * @static
  4813. */
  4814. public static function makeListener($listener){
  4815. //Method inherited from \Illuminate\Events\Dispatcher
  4816. return \Illuminate\Events\Dispatcher::makeListener($listener);
  4817. }
  4818. /**
  4819. * Create a class based listener using the IoC container.
  4820. *
  4821. * @param mixed $listener
  4822. * @return \Closure
  4823. * @static
  4824. */
  4825. public static function createClassListener($listener){
  4826. //Method inherited from \Illuminate\Events\Dispatcher
  4827. return \Illuminate\Events\Dispatcher::createClassListener($listener);
  4828. }
  4829. /**
  4830. * Remove a set of listeners from the dispatcher.
  4831. *
  4832. * @param string $event
  4833. * @return void
  4834. * @static
  4835. */
  4836. public static function forget($event){
  4837. //Method inherited from \Illuminate\Events\Dispatcher
  4838. \Illuminate\Events\Dispatcher::forget($event);
  4839. }
  4840. }
  4841. class File extends \Illuminate\Support\Facades\File{
  4842. /**
  4843. * Determine if a file exists.
  4844. *
  4845. * @param string $path
  4846. * @return bool
  4847. * @static
  4848. */
  4849. public static function exists($path){
  4850. //Method inherited from \Illuminate\Filesystem\Filesystem
  4851. return \Illuminate\Filesystem\Filesystem::exists($path);
  4852. }
  4853. /**
  4854. * Get the contents of a file.
  4855. *
  4856. * @param string $path
  4857. * @return string
  4858. * @throws FileNotFoundException
  4859. * @static
  4860. */
  4861. public static function get($path){
  4862. //Method inherited from \Illuminate\Filesystem\Filesystem
  4863. return \Illuminate\Filesystem\Filesystem::get($path);
  4864. }
  4865. /**
  4866. * Get the returned value of a file.
  4867. *
  4868. * @param string $path
  4869. * @return mixed
  4870. * @throws FileNotFoundException
  4871. * @static
  4872. */
  4873. public static function getRequire($path){
  4874. //Method inherited from \Illuminate\Filesystem\Filesystem
  4875. return \Illuminate\Filesystem\Filesystem::getRequire($path);
  4876. }
  4877. /**
  4878. * Require the given file once.
  4879. *
  4880. * @param string $file
  4881. * @return mixed
  4882. * @static
  4883. */
  4884. public static function requireOnce($file){
  4885. //Method inherited from \Illuminate\Filesystem\Filesystem
  4886. return \Illuminate\Filesystem\Filesystem::requireOnce($file);
  4887. }
  4888. /**
  4889. * Write the contents of a file.
  4890. *
  4891. * @param string $path
  4892. * @param string $contents
  4893. * @return int
  4894. * @static
  4895. */
  4896. public static function put($path, $contents){
  4897. //Method inherited from \Illuminate\Filesystem\Filesystem
  4898. return \Illuminate\Filesystem\Filesystem::put($path, $contents);
  4899. }
  4900. /**
  4901. * Prepend to a file.
  4902. *
  4903. * @param string $path
  4904. * @param string $data
  4905. * @return int
  4906. * @static
  4907. */
  4908. public static function prepend($path, $data){
  4909. //Method inherited from \Illuminate\Filesystem\Filesystem
  4910. return \Illuminate\Filesystem\Filesystem::prepend($path, $data);
  4911. }
  4912. /**
  4913. * Append to a file.
  4914. *
  4915. * @param string $path
  4916. * @param string $data
  4917. * @return int
  4918. * @static
  4919. */
  4920. public static function append($path, $data){
  4921. //Method inherited from \Illuminate\Filesystem\Filesystem
  4922. return \Illuminate\Filesystem\Filesystem::append($path, $data);
  4923. }
  4924. /**
  4925. * Delete the file at a given path.
  4926. *
  4927. * @param string|array $paths
  4928. * @return bool
  4929. * @static
  4930. */
  4931. public static function delete($paths){
  4932. //Method inherited from \Illuminate\Filesystem\Filesystem
  4933. return \Illuminate\Filesystem\Filesystem::delete($paths);
  4934. }
  4935. /**
  4936. * Move a file to a new location.
  4937. *
  4938. * @param string $path
  4939. * @param string $target
  4940. * @return bool
  4941. * @static
  4942. */
  4943. public static function move($path, $target){
  4944. //Method inherited from \Illuminate\Filesystem\Filesystem
  4945. return \Illuminate\Filesystem\Filesystem::move($path, $target);
  4946. }
  4947. /**
  4948. * Copy a file to a new location.
  4949. *
  4950. * @param string $path
  4951. * @param string $target
  4952. * @return bool
  4953. * @static
  4954. */
  4955. public static function copy($path, $target){
  4956. //Method inherited from \Illuminate\Filesystem\Filesystem
  4957. return \Illuminate\Filesystem\Filesystem::copy($path, $target);
  4958. }
  4959. /**
  4960. * Extract the file extension from a file path.
  4961. *
  4962. * @param string $path
  4963. * @return string
  4964. * @static
  4965. */
  4966. public static function extension($path){
  4967. //Method inherited from \Illuminate\Filesystem\Filesystem
  4968. return \Illuminate\Filesystem\Filesystem::extension($path);
  4969. }
  4970. /**
  4971. * Get the file type of a given file.
  4972. *
  4973. * @param string $path
  4974. * @return string
  4975. * @static
  4976. */
  4977. public static function type($path){
  4978. //Method inherited from \Illuminate\Filesystem\Filesystem
  4979. return \Illuminate\Filesystem\Filesystem::type($path);
  4980. }
  4981. /**
  4982. * Get the file size of a given file.
  4983. *
  4984. * @param string $path
  4985. * @return int
  4986. * @static
  4987. */
  4988. public static function size($path){
  4989. //Method inherited from \Illuminate\Filesystem\Filesystem
  4990. return \Illuminate\Filesystem\Filesystem::size($path);
  4991. }
  4992. /**
  4993. * Get the file's last modification time.
  4994. *
  4995. * @param string $path
  4996. * @return int
  4997. * @static
  4998. */
  4999. public static function lastModified($path){
  5000. //Method inherited from \Illuminate\Filesystem\Filesystem
  5001. return \Illuminate\Filesystem\Filesystem::lastModified($path);
  5002. }
  5003. /**
  5004. * Determine if the given path is a directory.
  5005. *
  5006. * @param string $directory
  5007. * @return bool
  5008. * @static
  5009. */
  5010. public static function isDirectory($directory){
  5011. //Method inherited from \Illuminate\Filesystem\Filesystem
  5012. return \Illuminate\Filesystem\Filesystem::isDirectory($directory);
  5013. }
  5014. /**
  5015. * Determine if the given path is writable.
  5016. *
  5017. * @param string $path
  5018. * @return bool
  5019. * @static
  5020. */
  5021. public static function isWritable($path){
  5022. //Method inherited from \Illuminate\Filesystem\Filesystem
  5023. return \Illuminate\Filesystem\Filesystem::isWritable($path);
  5024. }
  5025. /**
  5026. * Determine if the given path is a file.
  5027. *
  5028. * @param string $file
  5029. * @return bool
  5030. * @static
  5031. */
  5032. public static function isFile($file){
  5033. //Method inherited from \Illuminate\Filesystem\Filesystem
  5034. return \Illuminate\Filesystem\Filesystem::isFile($file);
  5035. }
  5036. /**
  5037. * Find path names matching a given pattern.
  5038. *
  5039. * @param string $pattern
  5040. * @param int $flags
  5041. * @return array
  5042. * @static
  5043. */
  5044. public static function glob($pattern, $flags = 0){
  5045. //Method inherited from \Illuminate\Filesystem\Filesystem
  5046. return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  5047. }
  5048. /**
  5049. * Get an array of all files in a directory.
  5050. *
  5051. * @param string $directory
  5052. * @return array
  5053. * @static
  5054. */
  5055. public static function files($directory){
  5056. //Method inherited from \Illuminate\Filesystem\Filesystem
  5057. return \Illuminate\Filesystem\Filesystem::files($directory);
  5058. }
  5059. /**
  5060. * Get all of the files from the given directory (recursive).
  5061. *
  5062. * @param string $directory
  5063. * @return array
  5064. * @static
  5065. */
  5066. public static function allFiles($directory){
  5067. //Method inherited from \Illuminate\Filesystem\Filesystem
  5068. return \Illuminate\Filesystem\Filesystem::allFiles($directory);
  5069. }
  5070. /**
  5071. * Get all of the directories within a given directory.
  5072. *
  5073. * @param string $directory
  5074. * @return array
  5075. * @static
  5076. */
  5077. public static function directories($directory){
  5078. //Method inherited from \Illuminate\Filesystem\Filesystem
  5079. return \Illuminate\Filesystem\Filesystem::directories($directory);
  5080. }
  5081. /**
  5082. * Create a directory.
  5083. *
  5084. * @param string $path
  5085. * @param int $mode
  5086. * @param bool $recursive
  5087. * @param bool $force
  5088. * @return bool
  5089. * @static
  5090. */
  5091. public static function makeDirectory($path, $mode = 511, $recursive = false, $force = false){
  5092. //Method inherited from \Illuminate\Filesystem\Filesystem
  5093. return \Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
  5094. }
  5095. /**
  5096. * Copy a directory from one location to another.
  5097. *
  5098. * @param string $directory
  5099. * @param string $destination
  5100. * @param int $options
  5101. * @return bool
  5102. * @static
  5103. */
  5104. public static function copyDirectory($directory, $destination, $options = null){
  5105. //Method inherited from \Illuminate\Filesystem\Filesystem
  5106. return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  5107. }
  5108. /**
  5109. * Recursively delete a directory.
  5110. *
  5111. * The directory itself may be optionally preserved.
  5112. *
  5113. * @param string $directory
  5114. * @param bool $preserve
  5115. * @return bool
  5116. * @static
  5117. */
  5118. public static function deleteDirectory($directory, $preserve = false){
  5119. //Method inherited from \Illuminate\Filesystem\Filesystem
  5120. return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  5121. }
  5122. /**
  5123. * Empty the specified directory of all files and folders.
  5124. *
  5125. * @param string $directory
  5126. * @return bool
  5127. * @static
  5128. */
  5129. public static function cleanDirectory($directory){
  5130. //Method inherited from \Illuminate\Filesystem\Filesystem
  5131. return \Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  5132. }
  5133. }
  5134. class Form extends \Illuminate\Support\Facades\Form{
  5135. /**
  5136. * Create a new form builder instance.
  5137. *
  5138. * @param \Illuminate\Routing\UrlGenerator $url
  5139. * @param \Illuminate\Html\HtmlBuilder $html
  5140. * @param string $csrfToken
  5141. * @return void
  5142. * @static
  5143. */
  5144. public static function __construct($html, $url, $csrfToken){
  5145. //Method inherited from \Illuminate\Html\FormBuilder
  5146. \Illuminate\Html\FormBuilder::__construct($html, $url, $csrfToken);
  5147. }
  5148. /**
  5149. * Open up a new HTML form.
  5150. *
  5151. * @param array $options
  5152. * @return string
  5153. * @static
  5154. */
  5155. public static function open($options = array()){
  5156. //Method inherited from \Illuminate\Html\FormBuilder
  5157. return \Illuminate\Html\FormBuilder::open($options);
  5158. }
  5159. /**
  5160. * Create a new model based form builder.
  5161. *
  5162. * @param mixed $model
  5163. * @param array $options
  5164. * @return string
  5165. * @static
  5166. */
  5167. public static function model($model, $options = array()){
  5168. //Method inherited from \Illuminate\Html\FormBuilder
  5169. return \Illuminate\Html\FormBuilder::model($model, $options);
  5170. }
  5171. /**
  5172. * Set the model instance on the form builder.
  5173. *
  5174. * @param mixed $model
  5175. * @return void
  5176. * @static
  5177. */
  5178. public static function setModel($model){
  5179. //Method inherited from \Illuminate\Html\FormBuilder
  5180. \Illuminate\Html\FormBuilder::setModel($model);
  5181. }
  5182. /**
  5183. * Close the current form.
  5184. *
  5185. * @return string
  5186. * @static
  5187. */
  5188. public static function close(){
  5189. //Method inherited from \Illuminate\Html\FormBuilder
  5190. return \Illuminate\Html\FormBuilder::close();
  5191. }
  5192. /**
  5193. * Generate a hidden field with the current CSRF token.
  5194. *
  5195. * @return string
  5196. * @static
  5197. */
  5198. public static function token(){
  5199. //Method inherited from \Illuminate\Html\FormBuilder
  5200. return \Illuminate\Html\FormBuilder::token();
  5201. }
  5202. /**
  5203. * Create a form label element.
  5204. *
  5205. * @param string $name
  5206. * @param string $value
  5207. * @param array $options
  5208. * @return string
  5209. * @static
  5210. */
  5211. public static function label($name, $value = null, $options = array()){
  5212. //Method inherited from \Illuminate\Html\FormBuilder
  5213. return \Illuminate\Html\FormBuilder::label($name, $value, $options);
  5214. }
  5215. /**
  5216. * Create a form input field.
  5217. *
  5218. * @param string $type
  5219. * @param string $name
  5220. * @param string $value
  5221. * @param array $options
  5222. * @return string
  5223. * @static
  5224. */
  5225. public static function input($type, $name, $value = null, $options = array()){
  5226. //Method inherited from \Illuminate\Html\FormBuilder
  5227. return \Illuminate\Html\FormBuilder::input($type, $name, $value, $options);
  5228. }
  5229. /**
  5230. * Create a text input field.
  5231. *
  5232. * @param string $name
  5233. * @param string $value
  5234. * @param array $options
  5235. * @return string
  5236. * @static
  5237. */
  5238. public static function text($name, $value = null, $options = array()){
  5239. //Method inherited from \Illuminate\Html\FormBuilder
  5240. return \Illuminate\Html\FormBuilder::text($name, $value, $options);
  5241. }
  5242. /**
  5243. * Create a password input field.
  5244. *
  5245. * @param string $name
  5246. * @param array $options
  5247. * @return string
  5248. * @static
  5249. */
  5250. public static function password($name, $options = array()){
  5251. //Method inherited from \Illuminate\Html\FormBuilder
  5252. return \Illuminate\Html\FormBuilder::password($name, $options);
  5253. }
  5254. /**
  5255. * Create a hidden input field.
  5256. *
  5257. * @param string $name
  5258. * @param string $value
  5259. * @param array $options
  5260. * @return string
  5261. * @static
  5262. */
  5263. public static function hidden($name, $value = null, $options = array()){
  5264. //Method inherited from \Illuminate\Html\FormBuilder
  5265. return \Illuminate\Html\FormBuilder::hidden($name, $value, $options);
  5266. }
  5267. /**
  5268. * Create an e-mail input field.
  5269. *
  5270. * @param string $name
  5271. * @param string $value
  5272. * @param array $options
  5273. * @return string
  5274. * @static
  5275. */
  5276. public static function email($name, $value = null, $options = array()){
  5277. //Method inherited from \Illuminate\Html\FormBuilder
  5278. return \Illuminate\Html\FormBuilder::email($name, $value, $options);
  5279. }
  5280. /**
  5281. * Create a url input field.
  5282. *
  5283. * @param string $name
  5284. * @param string $value
  5285. * @param array $options
  5286. * @return string
  5287. * @static
  5288. */
  5289. public static function url($name, $value = null, $options = array()){
  5290. //Method inherited from \Illuminate\Html\FormBuilder
  5291. return \Illuminate\Html\FormBuilder::url($name, $value, $options);
  5292. }
  5293. /**
  5294. * Create a file input field.
  5295. *
  5296. * @param string $name
  5297. * @param array $options
  5298. * @return string
  5299. * @static
  5300. */
  5301. public static function file($name, $options = array()){
  5302. //Method inherited from \Illuminate\Html\FormBuilder
  5303. return \Illuminate\Html\FormBuilder::file($name, $options);
  5304. }
  5305. /**
  5306. * Create a textarea input field.
  5307. *
  5308. * @param string $name
  5309. * @param string $value
  5310. * @param array $options
  5311. * @return string
  5312. * @static
  5313. */
  5314. public static function textarea($name, $value = null, $options = array()){
  5315. //Method inherited from \Illuminate\Html\FormBuilder
  5316. return \Illuminate\Html\FormBuilder::textarea($name, $value, $options);
  5317. }
  5318. /**
  5319. * Create a select box field.
  5320. *
  5321. * @param string $name
  5322. * @param array $list
  5323. * @param string $selected
  5324. * @param array $options
  5325. * @return string
  5326. * @static
  5327. */
  5328. public static function select($name, $list = array(), $selected = null, $options = array()){
  5329. //Method inherited from \Illuminate\Html\FormBuilder
  5330. return \Illuminate\Html\FormBuilder::select($name, $list, $selected, $options);
  5331. }
  5332. /**
  5333. * Create a select range field.
  5334. *
  5335. * @param string $name
  5336. * @param string $begin
  5337. * @param string $end
  5338. * @param string $selected
  5339. * @param array $options
  5340. * @return string
  5341. * @static
  5342. */
  5343. public static function selectRange($name, $begin, $end, $selected = null, $options = array()){
  5344. //Method inherited from \Illuminate\Html\FormBuilder
  5345. return \Illuminate\Html\FormBuilder::selectRange($name, $begin, $end, $selected, $options);
  5346. }
  5347. /**
  5348. * Create a select year field.
  5349. *
  5350. * @param string $name
  5351. * @param string $begin
  5352. * @param string $end
  5353. * @param string $selected
  5354. * @param array $options
  5355. * @return string
  5356. * @static
  5357. */
  5358. public static function selectYear(){
  5359. //Method inherited from \Illuminate\Html\FormBuilder
  5360. return \Illuminate\Html\FormBuilder::selectYear();
  5361. }
  5362. /**
  5363. * Create a select month field.
  5364. *
  5365. * @param string $name
  5366. * @param string $selected
  5367. * @param array $options
  5368. * @return string
  5369. * @static
  5370. */
  5371. public static function selectMonth($name, $selected = null, $options = array()){
  5372. //Method inherited from \Illuminate\Html\FormBuilder
  5373. return \Illuminate\Html\FormBuilder::selectMonth($name, $selected, $options);
  5374. }
  5375. /**
  5376. * Get the select option for the given value.
  5377. *
  5378. * @param string $display
  5379. * @param string $value
  5380. * @param string $selected
  5381. * @return string
  5382. * @static
  5383. */
  5384. public static function getSelectOption($display, $value, $selected){
  5385. //Method inherited from \Illuminate\Html\FormBuilder
  5386. return \Illuminate\Html\FormBuilder::getSelectOption($display, $value, $selected);
  5387. }
  5388. /**
  5389. * Create a checkbox input field.
  5390. *
  5391. * @param string $name
  5392. * @param mixed $value
  5393. * @param bool $checked
  5394. * @param array $options
  5395. * @return string
  5396. * @static
  5397. */
  5398. public static function checkbox($name, $value = 1, $checked = null, $options = array()){
  5399. //Method inherited from \Illuminate\Html\FormBuilder
  5400. return \Illuminate\Html\FormBuilder::checkbox($name, $value, $checked, $options);
  5401. }
  5402. /**
  5403. * Create a radio button input field.
  5404. *
  5405. * @param string $name
  5406. * @param mixed $value
  5407. * @param bool $checked
  5408. * @param array $options
  5409. * @return string
  5410. * @static
  5411. */
  5412. public static function radio($name, $value = null, $checked = null, $options = array()){
  5413. //Method inherited from \Illuminate\Html\FormBuilder
  5414. return \Illuminate\Html\FormBuilder::radio($name, $value, $checked, $options);
  5415. }
  5416. /**
  5417. * Create a HTML reset input element.
  5418. *
  5419. * @param string $value
  5420. * @param array $attributes
  5421. * @return string
  5422. * @static
  5423. */
  5424. public static function reset($value, $attributes = array()){
  5425. //Method inherited from \Illuminate\Html\FormBuilder
  5426. return \Illuminate\Html\FormBuilder::reset($value, $attributes);
  5427. }
  5428. /**
  5429. * Create a HTML image input element.
  5430. *
  5431. * @param string $url
  5432. * @param string $name
  5433. * @param array $attributes
  5434. * @return string
  5435. * @static
  5436. */
  5437. public static function image($url, $name = null, $attributes = array()){
  5438. //Method inherited from \Illuminate\Html\FormBuilder
  5439. return \Illuminate\Html\FormBuilder::image($url, $name, $attributes);
  5440. }
  5441. /**
  5442. * Create a submit button element.
  5443. *
  5444. * @param string $value
  5445. * @param array $options
  5446. * @return string
  5447. * @static
  5448. */
  5449. public static function submit($value = null, $options = array()){
  5450. //Method inherited from \Illuminate\Html\FormBuilder
  5451. return \Illuminate\Html\FormBuilder::submit($value, $options);
  5452. }
  5453. /**
  5454. * Create a button element.
  5455. *
  5456. * @param string $value
  5457. * @param array $options
  5458. * @return string
  5459. * @static
  5460. */
  5461. public static function button($value = null, $options = array()){
  5462. //Method inherited from \Illuminate\Html\FormBuilder
  5463. return \Illuminate\Html\FormBuilder::button($value, $options);
  5464. }
  5465. /**
  5466. * Register a custom form macro.
  5467. *
  5468. * @param string $name
  5469. * @param callable $macro
  5470. * @return void
  5471. * @static
  5472. */
  5473. public static function macro($name, $macro){
  5474. //Method inherited from \Illuminate\Html\FormBuilder
  5475. \Illuminate\Html\FormBuilder::macro($name, $macro);
  5476. }
  5477. /**
  5478. * Get the ID attribute for a field name.
  5479. *
  5480. * @param string $name
  5481. * @param array $attributes
  5482. * @return string
  5483. * @static
  5484. */
  5485. public static function getIdAttribute($name, $attributes){
  5486. //Method inherited from \Illuminate\Html\FormBuilder
  5487. return \Illuminate\Html\FormBuilder::getIdAttribute($name, $attributes);
  5488. }
  5489. /**
  5490. * Get the value that should be assigned to the field.
  5491. *
  5492. * @param string $name
  5493. * @param string $value
  5494. * @return string
  5495. * @static
  5496. */
  5497. public static function getValueAttribute($name, $value = null){
  5498. //Method inherited from \Illuminate\Html\FormBuilder
  5499. return \Illuminate\Html\FormBuilder::getValueAttribute($name, $value);
  5500. }
  5501. /**
  5502. * Get a value from the session's old input.
  5503. *
  5504. * @param string $name
  5505. * @return string
  5506. * @static
  5507. */
  5508. public static function old($name){
  5509. //Method inherited from \Illuminate\Html\FormBuilder
  5510. return \Illuminate\Html\FormBuilder::old($name);
  5511. }
  5512. /**
  5513. * Determine if the old input is empty.
  5514. *
  5515. * @return bool
  5516. * @static
  5517. */
  5518. public static function oldInputIsEmpty(){
  5519. //Method inherited from \Illuminate\Html\FormBuilder
  5520. return \Illuminate\Html\FormBuilder::oldInputIsEmpty();
  5521. }
  5522. /**
  5523. * Get the session store implementation.
  5524. *
  5525. * @return \Illuminate\Session\Store $session
  5526. * @static
  5527. */
  5528. public static function getSessionStore(){
  5529. //Method inherited from \Illuminate\Html\FormBuilder
  5530. return \Illuminate\Html\FormBuilder::getSessionStore();
  5531. }
  5532. /**
  5533. * Set the session store implementation.
  5534. *
  5535. * @param \Illuminate\Session\Store $session
  5536. * @return \Illuminate\Html\FormBuilder
  5537. * @static
  5538. */
  5539. public static function setSessionStore($session){
  5540. //Method inherited from \Illuminate\Html\FormBuilder
  5541. return \Illuminate\Html\FormBuilder::setSessionStore($session);
  5542. }
  5543. /**
  5544. * Dynamically handle calls to the form builder.
  5545. *
  5546. * @param string $method
  5547. * @param array $parameters
  5548. * @return mixed
  5549. * @throws \BadMethodCallException
  5550. * @static
  5551. */
  5552. public static function __call($method, $parameters){
  5553. //Method inherited from \Illuminate\Html\FormBuilder
  5554. return \Illuminate\Html\FormBuilder::__call($method, $parameters);
  5555. }
  5556. }
  5557. class Hash extends \Illuminate\Support\Facades\Hash{
  5558. /**
  5559. * Hash the given value.
  5560. *
  5561. * @param string $value
  5562. * @param array $options
  5563. * @return string
  5564. * @throws \RuntimeException
  5565. * @static
  5566. */
  5567. public static function make($value, $options = array()){
  5568. //Method inherited from \Illuminate\Hashing\BcryptHasher
  5569. return \Illuminate\Hashing\BcryptHasher::make($value, $options);
  5570. }
  5571. /**
  5572. * Check the given plain value against a hash.
  5573. *
  5574. * @param string $value
  5575. * @param string $hashedValue
  5576. * @param array $options
  5577. * @return bool
  5578. * @static
  5579. */
  5580. public static function check($value, $hashedValue, $options = array()){
  5581. //Method inherited from \Illuminate\Hashing\BcryptHasher
  5582. return \Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
  5583. }
  5584. /**
  5585. * Check if the given hash has been hashed using the given options.
  5586. *
  5587. * @param string $hashedValue
  5588. * @param array $options
  5589. * @return bool
  5590. * @static
  5591. */
  5592. public static function needsRehash($hashedValue, $options = array()){
  5593. //Method inherited from \Illuminate\Hashing\BcryptHasher
  5594. return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
  5595. }
  5596. }
  5597. class HTML extends \Illuminate\Support\Facades\HTML{
  5598. /**
  5599. * Create a new HTML builder instance.
  5600. *
  5601. * @param \Illuminate\Routing\UrlGenerator $url
  5602. * @return void
  5603. * @static
  5604. */
  5605. public static function __construct($url = null){
  5606. //Method inherited from \Illuminate\Html\HtmlBuilder
  5607. \Illuminate\Html\HtmlBuilder::__construct($url);
  5608. }
  5609. /**
  5610. * Register a custom HTML macro.
  5611. *
  5612. * @param string $name
  5613. * @param callable $macro
  5614. * @return void
  5615. * @static
  5616. */
  5617. public static function macro($name, $macro){
  5618. //Method inherited from \Illuminate\Html\HtmlBuilder
  5619. \Illuminate\Html\HtmlBuilder::macro($name, $macro);
  5620. }
  5621. /**
  5622. * Convert an HTML string to entities.
  5623. *
  5624. * @param string $value
  5625. * @return string
  5626. * @static
  5627. */
  5628. public static function entities($value){
  5629. //Method inherited from \Illuminate\Html\HtmlBuilder
  5630. return \Illuminate\Html\HtmlBuilder::entities($value);
  5631. }
  5632. /**
  5633. * Convert entities to HTML characters.
  5634. *
  5635. * @param string $value
  5636. * @return string
  5637. * @static
  5638. */
  5639. public static function decode($value){
  5640. //Method inherited from \Illuminate\Html\HtmlBuilder
  5641. return \Illuminate\Html\HtmlBuilder::decode($value);
  5642. }
  5643. /**
  5644. * Generate a link to a JavaScript file.
  5645. *
  5646. * @param string $url
  5647. * @param array $attributes
  5648. * @param bool $secure
  5649. * @return string
  5650. * @static
  5651. */
  5652. public static function script($url, $attributes = array(), $secure = null){
  5653. //Method inherited from \Illuminate\Html\HtmlBuilder
  5654. return \Illuminate\Html\HtmlBuilder::script($url, $attributes, $secure);
  5655. }
  5656. /**
  5657. * Generate a link to a CSS file.
  5658. *
  5659. * @param string $url
  5660. * @param array $attributes
  5661. * @param bool $secure
  5662. * @return string
  5663. * @static
  5664. */
  5665. public static function style($url, $attributes = array(), $secure = null){
  5666. //Method inherited from \Illuminate\Html\HtmlBuilder
  5667. return \Illuminate\Html\HtmlBuilder::style($url, $attributes, $secure);
  5668. }
  5669. /**
  5670. * Generate an HTML image element.
  5671. *
  5672. * @param string $url
  5673. * @param string $alt
  5674. * @param array $attributes
  5675. * @param bool $secure
  5676. * @return string
  5677. * @static
  5678. */
  5679. public static function image($url, $alt = null, $attributes = array(), $secure = null){
  5680. //Method inherited from \Illuminate\Html\HtmlBuilder
  5681. return \Illuminate\Html\HtmlBuilder::image($url, $alt, $attributes, $secure);
  5682. }
  5683. /**
  5684. * Generate a HTML link.
  5685. *
  5686. * @param string $url
  5687. * @param string $title
  5688. * @param array $attributes
  5689. * @param bool $secure
  5690. * @return string
  5691. * @static
  5692. */
  5693. public static function link($url, $title = null, $attributes = array(), $secure = null){
  5694. //Method inherited from \Illuminate\Html\HtmlBuilder
  5695. return \Illuminate\Html\HtmlBuilder::link($url, $title, $attributes, $secure);
  5696. }
  5697. /**
  5698. * Generate a HTTPS HTML link.
  5699. *
  5700. * @param string $url
  5701. * @param string $title
  5702. * @param array $attributes
  5703. * @return string
  5704. * @static
  5705. */
  5706. public static function secureLink($url, $title = null, $attributes = array()){
  5707. //Method inherited from \Illuminate\Html\HtmlBuilder
  5708. return \Illuminate\Html\HtmlBuilder::secureLink($url, $title, $attributes);
  5709. }
  5710. /**
  5711. * Generate a HTML link to an asset.
  5712. *
  5713. * @param string $url
  5714. * @param string $title
  5715. * @param array $attributes
  5716. * @param bool $secure
  5717. * @return string
  5718. * @static
  5719. */
  5720. public static function linkAsset($url, $title = null, $attributes = array(), $secure = null){
  5721. //Method inherited from \Illuminate\Html\HtmlBuilder
  5722. return \Illuminate\Html\HtmlBuilder::linkAsset($url, $title, $attributes, $secure);
  5723. }
  5724. /**
  5725. * Generate a HTTPS HTML link to an asset.
  5726. *
  5727. * @param string $url
  5728. * @param string $title
  5729. * @param array $attributes
  5730. * @return string
  5731. * @static
  5732. */
  5733. public static function linkSecureAsset($url, $title = null, $attributes = array()){
  5734. //Method inherited from \Illuminate\Html\HtmlBuilder
  5735. return \Illuminate\Html\HtmlBuilder::linkSecureAsset($url, $title, $attributes);
  5736. }
  5737. /**
  5738. * Generate a HTML link to a named route.
  5739. *
  5740. * @param string $name
  5741. * @param string $title
  5742. * @param array $parameters
  5743. * @param array $attributes
  5744. * @return string
  5745. * @static
  5746. */
  5747. public static function linkRoute($name, $title = null, $parameters = array(), $attributes = array()){
  5748. //Method inherited from \Illuminate\Html\HtmlBuilder
  5749. return \Illuminate\Html\HtmlBuilder::linkRoute($name, $title, $parameters, $attributes);
  5750. }
  5751. /**
  5752. * Generate a HTML link to a controller action.
  5753. *
  5754. * @param string $action
  5755. * @param string $title
  5756. * @param array $parameters
  5757. * @param array $attributes
  5758. * @return string
  5759. * @static
  5760. */
  5761. public static function linkAction($action, $title = null, $parameters = array(), $attributes = array()){
  5762. //Method inherited from \Illuminate\Html\HtmlBuilder
  5763. return \Illuminate\Html\HtmlBuilder::linkAction($action, $title, $parameters, $attributes);
  5764. }
  5765. /**
  5766. * Generate a HTML link to an email address.
  5767. *
  5768. * @param string $email
  5769. * @param string $title
  5770. * @param array $attributes
  5771. * @return string
  5772. * @static
  5773. */
  5774. public static function mailto($email, $title = null, $attributes = array()){
  5775. //Method inherited from \Illuminate\Html\HtmlBuilder
  5776. return \Illuminate\Html\HtmlBuilder::mailto($email, $title, $attributes);
  5777. }
  5778. /**
  5779. * Obfuscate an e-mail address to prevent spam-bots from sniffing it.
  5780. *
  5781. * @param string $email
  5782. * @return string
  5783. * @static
  5784. */
  5785. public static function email($email){
  5786. //Method inherited from \Illuminate\Html\HtmlBuilder
  5787. return \Illuminate\Html\HtmlBuilder::email($email);
  5788. }
  5789. /**
  5790. * Generate an ordered list of items.
  5791. *
  5792. * @param array $list
  5793. * @param array $attributes
  5794. * @return string
  5795. * @static
  5796. */
  5797. public static function ol($list, $attributes = array()){
  5798. //Method inherited from \Illuminate\Html\HtmlBuilder
  5799. return \Illuminate\Html\HtmlBuilder::ol($list, $attributes);
  5800. }
  5801. /**
  5802. * Generate an un-ordered list of items.
  5803. *
  5804. * @param array $list
  5805. * @param array $attributes
  5806. * @return string
  5807. * @static
  5808. */
  5809. public static function ul($list, $attributes = array()){
  5810. //Method inherited from \Illuminate\Html\HtmlBuilder
  5811. return \Illuminate\Html\HtmlBuilder::ul($list, $attributes);
  5812. }
  5813. /**
  5814. * Build an HTML attribute string from an array.
  5815. *
  5816. * @param array $attributes
  5817. * @return string
  5818. * @static
  5819. */
  5820. public static function attributes($attributes){
  5821. //Method inherited from \Illuminate\Html\HtmlBuilder
  5822. return \Illuminate\Html\HtmlBuilder::attributes($attributes);
  5823. }
  5824. /**
  5825. * Obfuscate a string to prevent spam-bots from sniffing it.
  5826. *
  5827. * @param string $value
  5828. * @return string
  5829. * @static
  5830. */
  5831. public static function obfuscate($value){
  5832. //Method inherited from \Illuminate\Html\HtmlBuilder
  5833. return \Illuminate\Html\HtmlBuilder::obfuscate($value);
  5834. }
  5835. /**
  5836. * Dynamically handle calls to the html class.
  5837. *
  5838. * @param string $method
  5839. * @param array $parameters
  5840. * @return mixed
  5841. * @throws \BadMethodCallException
  5842. * @static
  5843. */
  5844. public static function __call($method, $parameters){
  5845. //Method inherited from \Illuminate\Html\HtmlBuilder
  5846. return \Illuminate\Html\HtmlBuilder::__call($method, $parameters);
  5847. }
  5848. }
  5849. class Input extends \Illuminate\Support\Facades\Input{
  5850. /**
  5851. * Return the Request instance.
  5852. *
  5853. * @return \Illuminate\Http\Request
  5854. * @static
  5855. */
  5856. public static function instance(){
  5857. //Method inherited from \Illuminate\Http\Request
  5858. return \Illuminate\Http\Request::instance();
  5859. }
  5860. /**
  5861. * Get the request method.
  5862. *
  5863. * @return string
  5864. * @static
  5865. */
  5866. public static function method(){
  5867. //Method inherited from \Illuminate\Http\Request
  5868. return \Illuminate\Http\Request::method();
  5869. }
  5870. /**
  5871. * Get the root URL for the application.
  5872. *
  5873. * @return string
  5874. * @static
  5875. */
  5876. public static function root(){
  5877. //Method inherited from \Illuminate\Http\Request
  5878. return \Illuminate\Http\Request::root();
  5879. }
  5880. /**
  5881. * Get the URL (no query string) for the request.
  5882. *
  5883. * @return string
  5884. * @static
  5885. */
  5886. public static function url(){
  5887. //Method inherited from \Illuminate\Http\Request
  5888. return \Illuminate\Http\Request::url();
  5889. }
  5890. /**
  5891. * Get the full URL for the request.
  5892. *
  5893. * @return string
  5894. * @static
  5895. */
  5896. public static function fullUrl(){
  5897. //Method inherited from \Illuminate\Http\Request
  5898. return \Illuminate\Http\Request::fullUrl();
  5899. }
  5900. /**
  5901. * Get the current path info for the request.
  5902. *
  5903. * @return string
  5904. * @static
  5905. */
  5906. public static function path(){
  5907. //Method inherited from \Illuminate\Http\Request
  5908. return \Illuminate\Http\Request::path();
  5909. }
  5910. /**
  5911. * Get the current encoded path info for the request.
  5912. *
  5913. * @return string
  5914. * @static
  5915. */
  5916. public static function decodedPath(){
  5917. //Method inherited from \Illuminate\Http\Request
  5918. return \Illuminate\Http\Request::decodedPath();
  5919. }
  5920. /**
  5921. * Get a segment from the URI (1 based index).
  5922. *
  5923. * @param string $index
  5924. * @param mixed $default
  5925. * @return string
  5926. * @static
  5927. */
  5928. public static function segment($index, $default = null){
  5929. //Method inherited from \Illuminate\Http\Request
  5930. return \Illuminate\Http\Request::segment($index, $default);
  5931. }
  5932. /**
  5933. * Get all of the segments for the request path.
  5934. *
  5935. * @return array
  5936. * @static
  5937. */
  5938. public static function segments(){
  5939. //Method inherited from \Illuminate\Http\Request
  5940. return \Illuminate\Http\Request::segments();
  5941. }
  5942. /**
  5943. * Determine if the current request URI matches a pattern.
  5944. *
  5945. * @param dynamic string
  5946. * @return bool
  5947. * @static
  5948. */
  5949. public static function is(){
  5950. //Method inherited from \Illuminate\Http\Request
  5951. return \Illuminate\Http\Request::is();
  5952. }
  5953. /**
  5954. * Determine if the request is the result of an AJAX call.
  5955. *
  5956. * @return bool
  5957. * @static
  5958. */
  5959. public static function ajax(){
  5960. //Method inherited from \Illuminate\Http\Request
  5961. return \Illuminate\Http\Request::ajax();
  5962. }
  5963. /**
  5964. * Determine if the request is over HTTPS.
  5965. *
  5966. * @return bool
  5967. * @static
  5968. */
  5969. public static function secure(){
  5970. //Method inherited from \Illuminate\Http\Request
  5971. return \Illuminate\Http\Request::secure();
  5972. }
  5973. /**
  5974. * Determine if the request contains a given input item key.
  5975. *
  5976. * @param string|array $key
  5977. * @return bool
  5978. * @static
  5979. */
  5980. public static function exists($key){
  5981. //Method inherited from \Illuminate\Http\Request
  5982. return \Illuminate\Http\Request::exists($key);
  5983. }
  5984. /**
  5985. * Determine if the request contains a non-emtpy value for an input item.
  5986. *
  5987. * @param string|array $key
  5988. * @return bool
  5989. * @static
  5990. */
  5991. public static function has($key){
  5992. //Method inherited from \Illuminate\Http\Request
  5993. return \Illuminate\Http\Request::has($key);
  5994. }
  5995. /**
  5996. * Get all of the input and files for the request.
  5997. *
  5998. * @return array
  5999. * @static
  6000. */
  6001. public static function all(){
  6002. //Method inherited from \Illuminate\Http\Request
  6003. return \Illuminate\Http\Request::all();
  6004. }
  6005. /**
  6006. * Retrieve an input item from the request.
  6007. *
  6008. * @param string $key
  6009. * @param mixed $default
  6010. * @return string
  6011. * @static
  6012. */
  6013. public static function input($key = null, $default = null){
  6014. //Method inherited from \Illuminate\Http\Request
  6015. return \Illuminate\Http\Request::input($key, $default);
  6016. }
  6017. /**
  6018. * Get a subset of the items from the input data.
  6019. *
  6020. * @param array $keys
  6021. * @return array
  6022. * @static
  6023. */
  6024. public static function only($keys){
  6025. //Method inherited from \Illuminate\Http\Request
  6026. return \Illuminate\Http\Request::only($keys);
  6027. }
  6028. /**
  6029. * Get all of the input except for a specified array of items.
  6030. *
  6031. * @param array $keys
  6032. * @return array
  6033. * @static
  6034. */
  6035. public static function except($keys){
  6036. //Method inherited from \Illuminate\Http\Request
  6037. return \Illuminate\Http\Request::except($keys);
  6038. }
  6039. /**
  6040. * Retrieve a query string item from the request.
  6041. *
  6042. * @param string $key
  6043. * @param mixed $default
  6044. * @return string
  6045. * @static
  6046. */
  6047. public static function query($key = null, $default = null){
  6048. //Method inherited from \Illuminate\Http\Request
  6049. return \Illuminate\Http\Request::query($key, $default);
  6050. }
  6051. /**
  6052. * Determine if a cookie is set on the request.
  6053. *
  6054. * @param string $key
  6055. * @return bool
  6056. * @static
  6057. */
  6058. public static function hasCookie($key){
  6059. //Method inherited from \Illuminate\Http\Request
  6060. return \Illuminate\Http\Request::hasCookie($key);
  6061. }
  6062. /**
  6063. * Retrieve a cookie from the request.
  6064. *
  6065. * @param string $key
  6066. * @param mixed $default
  6067. * @return string
  6068. * @static
  6069. */
  6070. public static function cookie($key = null, $default = null){
  6071. //Method inherited from \Illuminate\Http\Request
  6072. return \Illuminate\Http\Request::cookie($key, $default);
  6073. }
  6074. /**
  6075. * Retrieve a file from the request.
  6076. *
  6077. * @param string $key
  6078. * @param mixed $default
  6079. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  6080. * @static
  6081. */
  6082. public static function file($key = null, $default = null){
  6083. //Method inherited from \Illuminate\Http\Request
  6084. return \Illuminate\Http\Request::file($key, $default);
  6085. }
  6086. /**
  6087. * Determine if the uploaded data contains a file.
  6088. *
  6089. * @param string $key
  6090. * @return bool
  6091. * @static
  6092. */
  6093. public static function hasFile($key){
  6094. //Method inherited from \Illuminate\Http\Request
  6095. return \Illuminate\Http\Request::hasFile($key);
  6096. }
  6097. /**
  6098. * Retrieve a header from the request.
  6099. *
  6100. * @param string $key
  6101. * @param mixed $default
  6102. * @return string
  6103. * @static
  6104. */
  6105. public static function header($key = null, $default = null){
  6106. //Method inherited from \Illuminate\Http\Request
  6107. return \Illuminate\Http\Request::header($key, $default);
  6108. }
  6109. /**
  6110. * Retrieve a server variable from the request.
  6111. *
  6112. * @param string $key
  6113. * @param mixed $default
  6114. * @return string
  6115. * @static
  6116. */
  6117. public static function server($key = null, $default = null){
  6118. //Method inherited from \Illuminate\Http\Request
  6119. return \Illuminate\Http\Request::server($key, $default);
  6120. }
  6121. /**
  6122. * Retrieve an old input item.
  6123. *
  6124. * @param string $key
  6125. * @param mixed $default
  6126. * @return mixed
  6127. * @static
  6128. */
  6129. public static function old($key = null, $default = null){
  6130. //Method inherited from \Illuminate\Http\Request
  6131. return \Illuminate\Http\Request::old($key, $default);
  6132. }
  6133. /**
  6134. * Flash the input for the current request to the session.
  6135. *
  6136. * @param string $filter
  6137. * @param array $keys
  6138. * @return void
  6139. * @static
  6140. */
  6141. public static function flash($filter = null, $keys = array()){
  6142. //Method inherited from \Illuminate\Http\Request
  6143. \Illuminate\Http\Request::flash($filter, $keys);
  6144. }
  6145. /**
  6146. * Flash only some of the input to the session.
  6147. *
  6148. * @param dynamic string
  6149. * @return void
  6150. * @static
  6151. */
  6152. public static function flashOnly($keys){
  6153. //Method inherited from \Illuminate\Http\Request
  6154. \Illuminate\Http\Request::flashOnly($keys);
  6155. }
  6156. /**
  6157. * Flash only some of the input to the session.
  6158. *
  6159. * @param dynamic string
  6160. * @return void
  6161. * @static
  6162. */
  6163. public static function flashExcept($keys){
  6164. //Method inherited from \Illuminate\Http\Request
  6165. \Illuminate\Http\Request::flashExcept($keys);
  6166. }
  6167. /**
  6168. * Flush all of the old input from the session.
  6169. *
  6170. * @return void
  6171. * @static
  6172. */
  6173. public static function flush(){
  6174. //Method inherited from \Illuminate\Http\Request
  6175. \Illuminate\Http\Request::flush();
  6176. }
  6177. /**
  6178. * Merge new input into the current request's input array.
  6179. *
  6180. * @param array $input
  6181. * @return void
  6182. * @static
  6183. */
  6184. public static function merge($input){
  6185. //Method inherited from \Illuminate\Http\Request
  6186. \Illuminate\Http\Request::merge($input);
  6187. }
  6188. /**
  6189. * Replace the input for the current request.
  6190. *
  6191. * @param array $input
  6192. * @return void
  6193. * @static
  6194. */
  6195. public static function replace($input){
  6196. //Method inherited from \Illuminate\Http\Request
  6197. \Illuminate\Http\Request::replace($input);
  6198. }
  6199. /**
  6200. * Get the JSON payload for the request.
  6201. *
  6202. * @param string $key
  6203. * @param mixed $default
  6204. * @return mixed
  6205. * @static
  6206. */
  6207. public static function json($key = null, $default = null){
  6208. //Method inherited from \Illuminate\Http\Request
  6209. return \Illuminate\Http\Request::json($key, $default);
  6210. }
  6211. /**
  6212. * Determine if the request is sending JSON.
  6213. *
  6214. * @return bool
  6215. * @static
  6216. */
  6217. public static function isJson(){
  6218. //Method inherited from \Illuminate\Http\Request
  6219. return \Illuminate\Http\Request::isJson();
  6220. }
  6221. /**
  6222. * Determine if the current request is asking for JSON in return.
  6223. *
  6224. * @return bool
  6225. * @static
  6226. */
  6227. public static function wantsJson(){
  6228. //Method inherited from \Illuminate\Http\Request
  6229. return \Illuminate\Http\Request::wantsJson();
  6230. }
  6231. /**
  6232. * Get the data format expected in the response.
  6233. *
  6234. * @return string
  6235. * @static
  6236. */
  6237. public static function format($default = 'html'){
  6238. //Method inherited from \Illuminate\Http\Request
  6239. return \Illuminate\Http\Request::format($default);
  6240. }
  6241. /**
  6242. * Create an Illuminate request from a Symfony instance.
  6243. *
  6244. * @param \Symfony\Component\HttpFoundation\Request $request
  6245. * @return \Illuminate\Http\Request
  6246. * @static
  6247. */
  6248. public static function createFromBase($request){
  6249. //Method inherited from \Illuminate\Http\Request
  6250. return \Illuminate\Http\Request::createFromBase($request);
  6251. }
  6252. /**
  6253. * Get the session associated with the request.
  6254. *
  6255. * @return \Illuminate\Session\Store
  6256. * @throws \RuntimeException
  6257. * @static
  6258. */
  6259. public static function session(){
  6260. //Method inherited from \Illuminate\Http\Request
  6261. return \Illuminate\Http\Request::session();
  6262. }
  6263. /**
  6264. * Constructor.
  6265. *
  6266. * @param array $query The GET parameters
  6267. * @param array $request The POST parameters
  6268. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6269. * @param array $cookies The COOKIE parameters
  6270. * @param array $files The FILES parameters
  6271. * @param array $server The SERVER parameters
  6272. * @param string $content The raw body data
  6273. * @api
  6274. * @static
  6275. */
  6276. public static function __construct($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  6277. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6278. \Illuminate\Http\Request::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
  6279. }
  6280. /**
  6281. * Sets the parameters for this request.
  6282. *
  6283. * This method also re-initializes all properties.
  6284. *
  6285. * @param array $query The GET parameters
  6286. * @param array $request The POST parameters
  6287. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6288. * @param array $cookies The COOKIE parameters
  6289. * @param array $files The FILES parameters
  6290. * @param array $server The SERVER parameters
  6291. * @param string $content The raw body data
  6292. * @api
  6293. * @static
  6294. */
  6295. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  6296. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6297. \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  6298. }
  6299. /**
  6300. * Creates a new request with values from PHP's super globals.
  6301. *
  6302. * @return Request A new request
  6303. * @api
  6304. * @static
  6305. */
  6306. public static function createFromGlobals(){
  6307. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6308. return \Illuminate\Http\Request::createFromGlobals();
  6309. }
  6310. /**
  6311. * Creates a Request based on a given URI and configuration.
  6312. *
  6313. * The information contained in the URI always take precedence
  6314. * over the other information (server and parameters).
  6315. *
  6316. * @param string $uri The URI
  6317. * @param string $method The HTTP method
  6318. * @param array $parameters The query (GET) or request (POST) parameters
  6319. * @param array $cookies The request cookies ($_COOKIE)
  6320. * @param array $files The request files ($_FILES)
  6321. * @param array $server The server parameters ($_SERVER)
  6322. * @param string $content The raw body data
  6323. * @return Request A Request instance
  6324. * @api
  6325. * @static
  6326. */
  6327. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  6328. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6329. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  6330. }
  6331. /**
  6332. * Sets a callable able to create a Request instance.
  6333. *
  6334. * This is mainly useful when you need to override the Request class
  6335. * to keep BC with an existing system. It should not be used for any
  6336. * other purpose.
  6337. *
  6338. * @param callable|null $callable A PHP callable
  6339. * @static
  6340. */
  6341. public static function setFactory($callable){
  6342. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6343. \Illuminate\Http\Request::setFactory($callable);
  6344. }
  6345. /**
  6346. * Clones a request and overrides some of its parameters.
  6347. *
  6348. * @param array $query The GET parameters
  6349. * @param array $request The POST parameters
  6350. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6351. * @param array $cookies The COOKIE parameters
  6352. * @param array $files The FILES parameters
  6353. * @param array $server The SERVER parameters
  6354. * @return Request The duplicated request
  6355. * @api
  6356. * @static
  6357. */
  6358. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  6359. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6360. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  6361. }
  6362. /**
  6363. * Returns the request as a string.
  6364. *
  6365. * @return string The request
  6366. * @static
  6367. */
  6368. public static function __toString(){
  6369. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6370. return \Illuminate\Http\Request::__toString();
  6371. }
  6372. /**
  6373. * Overrides the PHP global variables according to this request instance.
  6374. *
  6375. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  6376. * $_FILES is never override, see rfc1867
  6377. *
  6378. * @api
  6379. * @static
  6380. */
  6381. public static function overrideGlobals(){
  6382. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6383. \Illuminate\Http\Request::overrideGlobals();
  6384. }
  6385. /**
  6386. * Sets a list of trusted proxies.
  6387. *
  6388. * You should only list the reverse proxies that you manage directly.
  6389. *
  6390. * @param array $proxies A list of trusted proxies
  6391. * @api
  6392. * @static
  6393. */
  6394. public static function setTrustedProxies($proxies){
  6395. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6396. \Illuminate\Http\Request::setTrustedProxies($proxies);
  6397. }
  6398. /**
  6399. * Gets the list of trusted proxies.
  6400. *
  6401. * @return array An array of trusted proxies.
  6402. * @static
  6403. */
  6404. public static function getTrustedProxies(){
  6405. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6406. return \Illuminate\Http\Request::getTrustedProxies();
  6407. }
  6408. /**
  6409. * Sets a list of trusted host patterns.
  6410. *
  6411. * You should only list the hosts you manage using regexs.
  6412. *
  6413. * @param array $hostPatterns A list of trusted host patterns
  6414. * @static
  6415. */
  6416. public static function setTrustedHosts($hostPatterns){
  6417. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6418. \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  6419. }
  6420. /**
  6421. * Gets the list of trusted host patterns.
  6422. *
  6423. * @return array An array of trusted host patterns.
  6424. * @static
  6425. */
  6426. public static function getTrustedHosts(){
  6427. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6428. return \Illuminate\Http\Request::getTrustedHosts();
  6429. }
  6430. /**
  6431. * Sets the name for trusted headers.
  6432. *
  6433. * The following header keys are supported:
  6434. *
  6435. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  6436. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
  6437. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
  6438. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  6439. *
  6440. * Setting an empty value allows to disable the trusted header for the given key.
  6441. *
  6442. * @param string $key The header key
  6443. * @param string $value The header name
  6444. * @throws \InvalidArgumentException
  6445. * @static
  6446. */
  6447. public static function setTrustedHeaderName($key, $value){
  6448. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6449. \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  6450. }
  6451. /**
  6452. * Gets the trusted proxy header name.
  6453. *
  6454. * @param string $key The header key
  6455. * @return string The header name
  6456. * @throws \InvalidArgumentException
  6457. * @static
  6458. */
  6459. public static function getTrustedHeaderName($key){
  6460. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6461. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  6462. }
  6463. /**
  6464. * Normalizes a query string.
  6465. *
  6466. * It builds a normalized query string, where keys/value pairs are alphabetized,
  6467. * have consistent escaping and unneeded delimiters are removed.
  6468. *
  6469. * @param string $qs Query string
  6470. * @return string A normalized query string for the Request
  6471. * @static
  6472. */
  6473. public static function normalizeQueryString($qs){
  6474. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6475. return \Illuminate\Http\Request::normalizeQueryString($qs);
  6476. }
  6477. /**
  6478. * Enables support for the _method request parameter to determine the intended HTTP method.
  6479. *
  6480. * Be warned that enabling this feature might lead to CSRF issues in your code.
  6481. * Check that you are using CSRF tokens when required.
  6482. *
  6483. * The HTTP method can only be overridden when the real HTTP method is POST.
  6484. *
  6485. * @static
  6486. */
  6487. public static function enableHttpMethodParameterOverride(){
  6488. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6489. \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  6490. }
  6491. /**
  6492. * Checks whether support for the _method request parameter is enabled.
  6493. *
  6494. * @return bool True when the _method request parameter is enabled, false otherwise
  6495. * @static
  6496. */
  6497. public static function getHttpMethodParameterOverride(){
  6498. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6499. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  6500. }
  6501. /**
  6502. * Gets a "parameter" value.
  6503. *
  6504. * This method is mainly useful for libraries that want to provide some flexibility.
  6505. *
  6506. * Order of precedence: GET, PATH, POST
  6507. *
  6508. * Avoid using this method in controllers:
  6509. *
  6510. * * slow
  6511. * * prefer to get from a "named" source
  6512. *
  6513. * It is better to explicitly get request parameters from the appropriate
  6514. * public property instead (query, attributes, request).
  6515. *
  6516. * @param string $key the key
  6517. * @param mixed $default the default value
  6518. * @param bool $deep is parameter deep in multidimensional array
  6519. * @return mixed
  6520. * @static
  6521. */
  6522. public static function get($key, $default = null, $deep = false){
  6523. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6524. return \Illuminate\Http\Request::get($key, $default, $deep);
  6525. }
  6526. /**
  6527. * Gets the Session.
  6528. *
  6529. * @return SessionInterface|null The session
  6530. * @api
  6531. * @static
  6532. */
  6533. public static function getSession(){
  6534. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6535. return \Illuminate\Http\Request::getSession();
  6536. }
  6537. /**
  6538. * Whether the request contains a Session which was started in one of the
  6539. * previous requests.
  6540. *
  6541. * @return bool
  6542. * @api
  6543. * @static
  6544. */
  6545. public static function hasPreviousSession(){
  6546. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6547. return \Illuminate\Http\Request::hasPreviousSession();
  6548. }
  6549. /**
  6550. * Whether the request contains a Session object.
  6551. *
  6552. * This method does not give any information about the state of the session object,
  6553. * like whether the session is started or not. It is just a way to check if this Request
  6554. * is associated with a Session instance.
  6555. *
  6556. * @return bool true when the Request contains a Session object, false otherwise
  6557. * @api
  6558. * @static
  6559. */
  6560. public static function hasSession(){
  6561. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6562. return \Illuminate\Http\Request::hasSession();
  6563. }
  6564. /**
  6565. * Sets the Session.
  6566. *
  6567. * @param SessionInterface $session The Session
  6568. * @api
  6569. * @static
  6570. */
  6571. public static function setSession($session){
  6572. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6573. \Illuminate\Http\Request::setSession($session);
  6574. }
  6575. /**
  6576. * Returns the client IP addresses.
  6577. *
  6578. * In the returned array the most trusted IP address is first, and the
  6579. * least trusted one last. The "real" client IP address is the last one,
  6580. * but this is also the least trusted one. Trusted proxies are stripped.
  6581. *
  6582. * Use this method carefully; you should use getClientIp() instead.
  6583. *
  6584. * @return array The client IP addresses
  6585. * @see getClientIp()
  6586. * @static
  6587. */
  6588. public static function getClientIps(){
  6589. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6590. return \Illuminate\Http\Request::getClientIps();
  6591. }
  6592. /**
  6593. * Returns the client IP address.
  6594. *
  6595. * This method can read the client IP address from the "X-Forwarded-For" header
  6596. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  6597. * header value is a comma+space separated list of IP addresses, the left-most
  6598. * being the original client, and each successive proxy that passed the request
  6599. * adding the IP address where it received the request from.
  6600. *
  6601. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  6602. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  6603. * the "client-ip" key.
  6604. *
  6605. * @return string The client IP address
  6606. * @see getClientIps()
  6607. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  6608. * @api
  6609. * @static
  6610. */
  6611. public static function getClientIp(){
  6612. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6613. return \Illuminate\Http\Request::getClientIp();
  6614. }
  6615. /**
  6616. * Returns current script name.
  6617. *
  6618. * @return string
  6619. * @api
  6620. * @static
  6621. */
  6622. public static function getScriptName(){
  6623. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6624. return \Illuminate\Http\Request::getScriptName();
  6625. }
  6626. /**
  6627. * Returns the path being requested relative to the executed script.
  6628. *
  6629. * The path info always starts with a /.
  6630. *
  6631. * Suppose this request is instantiated from /mysite on localhost:
  6632. *
  6633. * * http://localhost/mysite returns an empty string
  6634. * * http://localhost/mysite/about returns '/about'
  6635. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  6636. * * http://localhost/mysite/about?var=1 returns '/about'
  6637. *
  6638. * @return string The raw path (i.e. not urldecoded)
  6639. * @api
  6640. * @static
  6641. */
  6642. public static function getPathInfo(){
  6643. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6644. return \Illuminate\Http\Request::getPathInfo();
  6645. }
  6646. /**
  6647. * Returns the root path from which this request is executed.
  6648. *
  6649. * Suppose that an index.php file instantiates this request object:
  6650. *
  6651. * * http://localhost/index.php returns an empty string
  6652. * * http://localhost/index.php/page returns an empty string
  6653. * * http://localhost/web/index.php returns '/web'
  6654. * * http://localhost/we%20b/index.php returns '/we%20b'
  6655. *
  6656. * @return string The raw path (i.e. not urldecoded)
  6657. * @api
  6658. * @static
  6659. */
  6660. public static function getBasePath(){
  6661. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6662. return \Illuminate\Http\Request::getBasePath();
  6663. }
  6664. /**
  6665. * Returns the root URL from which this request is executed.
  6666. *
  6667. * The base URL never ends with a /.
  6668. *
  6669. * This is similar to getBasePath(), except that it also includes the
  6670. * script filename (e.g. index.php) if one exists.
  6671. *
  6672. * @return string The raw URL (i.e. not urldecoded)
  6673. * @api
  6674. * @static
  6675. */
  6676. public static function getBaseUrl(){
  6677. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6678. return \Illuminate\Http\Request::getBaseUrl();
  6679. }
  6680. /**
  6681. * Gets the request's scheme.
  6682. *
  6683. * @return string
  6684. * @api
  6685. * @static
  6686. */
  6687. public static function getScheme(){
  6688. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6689. return \Illuminate\Http\Request::getScheme();
  6690. }
  6691. /**
  6692. * Returns the port on which the request is made.
  6693. *
  6694. * This method can read the client port from the "X-Forwarded-Port" header
  6695. * when trusted proxies were set via "setTrustedProxies()".
  6696. *
  6697. * The "X-Forwarded-Port" header must contain the client port.
  6698. *
  6699. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  6700. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  6701. *
  6702. * @return string
  6703. * @api
  6704. * @static
  6705. */
  6706. public static function getPort(){
  6707. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6708. return \Illuminate\Http\Request::getPort();
  6709. }
  6710. /**
  6711. * Returns the user.
  6712. *
  6713. * @return string|null
  6714. * @static
  6715. */
  6716. public static function getUser(){
  6717. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6718. return \Illuminate\Http\Request::getUser();
  6719. }
  6720. /**
  6721. * Returns the password.
  6722. *
  6723. * @return string|null
  6724. * @static
  6725. */
  6726. public static function getPassword(){
  6727. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6728. return \Illuminate\Http\Request::getPassword();
  6729. }
  6730. /**
  6731. * Gets the user info.
  6732. *
  6733. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  6734. * @static
  6735. */
  6736. public static function getUserInfo(){
  6737. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6738. return \Illuminate\Http\Request::getUserInfo();
  6739. }
  6740. /**
  6741. * Returns the HTTP host being requested.
  6742. *
  6743. * The port name will be appended to the host if it's non-standard.
  6744. *
  6745. * @return string
  6746. * @api
  6747. * @static
  6748. */
  6749. public static function getHttpHost(){
  6750. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6751. return \Illuminate\Http\Request::getHttpHost();
  6752. }
  6753. /**
  6754. * Returns the requested URI.
  6755. *
  6756. * @return string The raw URI (i.e. not urldecoded)
  6757. * @api
  6758. * @static
  6759. */
  6760. public static function getRequestUri(){
  6761. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6762. return \Illuminate\Http\Request::getRequestUri();
  6763. }
  6764. /**
  6765. * Gets the scheme and HTTP host.
  6766. *
  6767. * If the URL was called with basic authentication, the user
  6768. * and the password are not added to the generated string.
  6769. *
  6770. * @return string The scheme and HTTP host
  6771. * @static
  6772. */
  6773. public static function getSchemeAndHttpHost(){
  6774. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6775. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  6776. }
  6777. /**
  6778. * Generates a normalized URI for the Request.
  6779. *
  6780. * @return string A normalized URI for the Request
  6781. * @see getQueryString()
  6782. * @api
  6783. * @static
  6784. */
  6785. public static function getUri(){
  6786. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6787. return \Illuminate\Http\Request::getUri();
  6788. }
  6789. /**
  6790. * Generates a normalized URI for the given path.
  6791. *
  6792. * @param string $path A path to use instead of the current one
  6793. * @return string The normalized URI for the path
  6794. * @api
  6795. * @static
  6796. */
  6797. public static function getUriForPath($path){
  6798. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6799. return \Illuminate\Http\Request::getUriForPath($path);
  6800. }
  6801. /**
  6802. * Generates the normalized query string for the Request.
  6803. *
  6804. * It builds a normalized query string, where keys/value pairs are alphabetized
  6805. * and have consistent escaping.
  6806. *
  6807. * @return string|null A normalized query string for the Request
  6808. * @api
  6809. * @static
  6810. */
  6811. public static function getQueryString(){
  6812. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6813. return \Illuminate\Http\Request::getQueryString();
  6814. }
  6815. /**
  6816. * Checks whether the request is secure or not.
  6817. *
  6818. * This method can read the client port from the "X-Forwarded-Proto" header
  6819. * when trusted proxies were set via "setTrustedProxies()".
  6820. *
  6821. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  6822. *
  6823. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  6824. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  6825. * the "client-proto" key.
  6826. *
  6827. * @return bool
  6828. * @api
  6829. * @static
  6830. */
  6831. public static function isSecure(){
  6832. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6833. return \Illuminate\Http\Request::isSecure();
  6834. }
  6835. /**
  6836. * Returns the host name.
  6837. *
  6838. * This method can read the client port from the "X-Forwarded-Host" header
  6839. * when trusted proxies were set via "setTrustedProxies()".
  6840. *
  6841. * The "X-Forwarded-Host" header must contain the client host name.
  6842. *
  6843. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  6844. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  6845. *
  6846. * @return string
  6847. * @throws \UnexpectedValueException when the host name is invalid
  6848. * @api
  6849. * @static
  6850. */
  6851. public static function getHost(){
  6852. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6853. return \Illuminate\Http\Request::getHost();
  6854. }
  6855. /**
  6856. * Sets the request method.
  6857. *
  6858. * @param string $method
  6859. * @api
  6860. * @static
  6861. */
  6862. public static function setMethod($method){
  6863. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6864. \Illuminate\Http\Request::setMethod($method);
  6865. }
  6866. /**
  6867. * Gets the request "intended" method.
  6868. *
  6869. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  6870. * then it is used to determine the "real" intended HTTP method.
  6871. *
  6872. * The _method request parameter can also be used to determine the HTTP method,
  6873. * but only if enableHttpMethodParameterOverride() has been called.
  6874. *
  6875. * The method is always an uppercased string.
  6876. *
  6877. * @return string The request method
  6878. * @api
  6879. * @see getRealMethod
  6880. * @static
  6881. */
  6882. public static function getMethod(){
  6883. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6884. return \Illuminate\Http\Request::getMethod();
  6885. }
  6886. /**
  6887. * Gets the "real" request method.
  6888. *
  6889. * @return string The request method
  6890. * @see getMethod
  6891. * @static
  6892. */
  6893. public static function getRealMethod(){
  6894. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6895. return \Illuminate\Http\Request::getRealMethod();
  6896. }
  6897. /**
  6898. * Gets the mime type associated with the format.
  6899. *
  6900. * @param string $format The format
  6901. * @return string The associated mime type (null if not found)
  6902. * @api
  6903. * @static
  6904. */
  6905. public static function getMimeType($format){
  6906. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6907. return \Illuminate\Http\Request::getMimeType($format);
  6908. }
  6909. /**
  6910. * Gets the format associated with the mime type.
  6911. *
  6912. * @param string $mimeType The associated mime type
  6913. * @return string|null The format (null if not found)
  6914. * @api
  6915. * @static
  6916. */
  6917. public static function getFormat($mimeType){
  6918. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6919. return \Illuminate\Http\Request::getFormat($mimeType);
  6920. }
  6921. /**
  6922. * Associates a format with mime types.
  6923. *
  6924. * @param string $format The format
  6925. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  6926. * @api
  6927. * @static
  6928. */
  6929. public static function setFormat($format, $mimeTypes){
  6930. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6931. \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  6932. }
  6933. /**
  6934. * Gets the request format.
  6935. *
  6936. * Here is the process to determine the format:
  6937. *
  6938. * * format defined by the user (with setRequestFormat())
  6939. * * _format request parameter
  6940. * * $default
  6941. *
  6942. * @param string $default The default format
  6943. * @return string The request format
  6944. * @api
  6945. * @static
  6946. */
  6947. public static function getRequestFormat($default = 'html'){
  6948. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6949. return \Illuminate\Http\Request::getRequestFormat($default);
  6950. }
  6951. /**
  6952. * Sets the request format.
  6953. *
  6954. * @param string $format The request format.
  6955. * @api
  6956. * @static
  6957. */
  6958. public static function setRequestFormat($format){
  6959. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6960. \Illuminate\Http\Request::setRequestFormat($format);
  6961. }
  6962. /**
  6963. * Gets the format associated with the request.
  6964. *
  6965. * @return string|null The format (null if no content type is present)
  6966. * @api
  6967. * @static
  6968. */
  6969. public static function getContentType(){
  6970. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6971. return \Illuminate\Http\Request::getContentType();
  6972. }
  6973. /**
  6974. * Sets the default locale.
  6975. *
  6976. * @param string $locale
  6977. * @api
  6978. * @static
  6979. */
  6980. public static function setDefaultLocale($locale){
  6981. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6982. \Illuminate\Http\Request::setDefaultLocale($locale);
  6983. }
  6984. /**
  6985. * Sets the locale.
  6986. *
  6987. * @param string $locale
  6988. * @api
  6989. * @static
  6990. */
  6991. public static function setLocale($locale){
  6992. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6993. \Illuminate\Http\Request::setLocale($locale);
  6994. }
  6995. /**
  6996. * Get the locale.
  6997. *
  6998. * @return string
  6999. * @static
  7000. */
  7001. public static function getLocale(){
  7002. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7003. return \Illuminate\Http\Request::getLocale();
  7004. }
  7005. /**
  7006. * Checks if the request method is of specified type.
  7007. *
  7008. * @param string $method Uppercase request method (GET, POST etc).
  7009. * @return bool
  7010. * @static
  7011. */
  7012. public static function isMethod($method){
  7013. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7014. return \Illuminate\Http\Request::isMethod($method);
  7015. }
  7016. /**
  7017. * Checks whether the method is safe or not.
  7018. *
  7019. * @return bool
  7020. * @api
  7021. * @static
  7022. */
  7023. public static function isMethodSafe(){
  7024. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7025. return \Illuminate\Http\Request::isMethodSafe();
  7026. }
  7027. /**
  7028. * Returns the request body content.
  7029. *
  7030. * @param bool $asResource If true, a resource will be returned
  7031. * @return string|resource The request body content or a resource to read the body stream.
  7032. * @throws \LogicException
  7033. * @static
  7034. */
  7035. public static function getContent($asResource = false){
  7036. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7037. return \Illuminate\Http\Request::getContent($asResource);
  7038. }
  7039. /**
  7040. * Gets the Etags.
  7041. *
  7042. * @return array The entity tags
  7043. * @static
  7044. */
  7045. public static function getETags(){
  7046. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7047. return \Illuminate\Http\Request::getETags();
  7048. }
  7049. /**
  7050. *
  7051. *
  7052. * @return bool
  7053. * @static
  7054. */
  7055. public static function isNoCache(){
  7056. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7057. return \Illuminate\Http\Request::isNoCache();
  7058. }
  7059. /**
  7060. * Returns the preferred language.
  7061. *
  7062. * @param array $locales An array of ordered available locales
  7063. * @return string|null The preferred locale
  7064. * @api
  7065. * @static
  7066. */
  7067. public static function getPreferredLanguage($locales = null){
  7068. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7069. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  7070. }
  7071. /**
  7072. * Gets a list of languages acceptable by the client browser.
  7073. *
  7074. * @return array Languages ordered in the user browser preferences
  7075. * @api
  7076. * @static
  7077. */
  7078. public static function getLanguages(){
  7079. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7080. return \Illuminate\Http\Request::getLanguages();
  7081. }
  7082. /**
  7083. * Gets a list of charsets acceptable by the client browser.
  7084. *
  7085. * @return array List of charsets in preferable order
  7086. * @api
  7087. * @static
  7088. */
  7089. public static function getCharsets(){
  7090. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7091. return \Illuminate\Http\Request::getCharsets();
  7092. }
  7093. /**
  7094. * Gets a list of encodings acceptable by the client browser.
  7095. *
  7096. * @return array List of encodings in preferable order
  7097. * @static
  7098. */
  7099. public static function getEncodings(){
  7100. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7101. return \Illuminate\Http\Request::getEncodings();
  7102. }
  7103. /**
  7104. * Gets a list of content types acceptable by the client browser
  7105. *
  7106. * @return array List of content types in preferable order
  7107. * @api
  7108. * @static
  7109. */
  7110. public static function getAcceptableContentTypes(){
  7111. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7112. return \Illuminate\Http\Request::getAcceptableContentTypes();
  7113. }
  7114. /**
  7115. * Returns true if the request is a XMLHttpRequest.
  7116. *
  7117. * It works if your JavaScript library set an X-Requested-With HTTP header.
  7118. * It is known to work with common JavaScript frameworks:
  7119. *
  7120. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  7121. * @return bool true if the request is an XMLHttpRequest, false otherwise
  7122. * @api
  7123. * @static
  7124. */
  7125. public static function isXmlHttpRequest(){
  7126. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7127. return \Illuminate\Http\Request::isXmlHttpRequest();
  7128. }
  7129. }
  7130. class Lang extends \Illuminate\Support\Facades\Lang{
  7131. /**
  7132. * Create a new translator instance.
  7133. *
  7134. * @param \Illuminate\Translation\LoaderInterface $loader
  7135. * @param string $locale
  7136. * @return void
  7137. * @static
  7138. */
  7139. public static function __construct($loader, $locale){
  7140. //Method inherited from \Illuminate\Translation\Translator
  7141. \Illuminate\Translation\Translator::__construct($loader, $locale);
  7142. }
  7143. /**
  7144. * Determine if a translation exists.
  7145. *
  7146. * @param string $key
  7147. * @param string $locale
  7148. * @return bool
  7149. * @static
  7150. */
  7151. public static function has($key, $locale = null){
  7152. //Method inherited from \Illuminate\Translation\Translator
  7153. return \Illuminate\Translation\Translator::has($key, $locale);
  7154. }
  7155. /**
  7156. * Get the translation for the given key.
  7157. *
  7158. * @param string $key
  7159. * @param array $replace
  7160. * @param string $locale
  7161. * @return string
  7162. * @static
  7163. */
  7164. public static function get($key, $replace = array(), $locale = null){
  7165. //Method inherited from \Illuminate\Translation\Translator
  7166. return \Illuminate\Translation\Translator::get($key, $replace, $locale);
  7167. }
  7168. /**
  7169. * Get a translation according to an integer value.
  7170. *
  7171. * @param string $key
  7172. * @param int $number
  7173. * @param array $replace
  7174. * @param string $locale
  7175. * @return string
  7176. * @static
  7177. */
  7178. public static function choice($key, $number, $replace = array(), $locale = null){
  7179. //Method inherited from \Illuminate\Translation\Translator
  7180. return \Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  7181. }
  7182. /**
  7183. * Get the translation for a given key.
  7184. *
  7185. * @param string $id
  7186. * @param array $parameters
  7187. * @param string $domain
  7188. * @param string $locale
  7189. * @return string
  7190. * @static
  7191. */
  7192. public static function trans($id, $parameters = array(), $domain = 'messages', $locale = null){
  7193. //Method inherited from \Illuminate\Translation\Translator
  7194. return \Illuminate\Translation\Translator::trans($id, $parameters, $domain, $locale);
  7195. }
  7196. /**
  7197. * Get a translation according to an integer value.
  7198. *
  7199. * @param string $id
  7200. * @param int $number
  7201. * @param array $parameters
  7202. * @param string $domain
  7203. * @param string $locale
  7204. * @return string
  7205. * @static
  7206. */
  7207. public static function transChoice($id, $number, $parameters = array(), $domain = 'messages', $locale = null){
  7208. //Method inherited from \Illuminate\Translation\Translator
  7209. return \Illuminate\Translation\Translator::transChoice($id, $number, $parameters, $domain, $locale);
  7210. }
  7211. /**
  7212. * Load the specified language group.
  7213. *
  7214. * @param string $namespace
  7215. * @param string $group
  7216. * @param string $locale
  7217. * @return void
  7218. * @static
  7219. */
  7220. public static function load($namespace, $group, $locale){
  7221. //Method inherited from \Illuminate\Translation\Translator
  7222. \Illuminate\Translation\Translator::load($namespace, $group, $locale);
  7223. }
  7224. /**
  7225. * Add a new namespace to the loader.
  7226. *
  7227. * @param string $namespace
  7228. * @param string $hint
  7229. * @return void
  7230. * @static
  7231. */
  7232. public static function addNamespace($namespace, $hint){
  7233. //Method inherited from \Illuminate\Translation\Translator
  7234. \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  7235. }
  7236. /**
  7237. * Parse a key into namespace, group, and item.
  7238. *
  7239. * @param string $key
  7240. * @return array
  7241. * @static
  7242. */
  7243. public static function parseKey($key){
  7244. //Method inherited from \Illuminate\Translation\Translator
  7245. return \Illuminate\Translation\Translator::parseKey($key);
  7246. }
  7247. /**
  7248. * Get the message selector instance.
  7249. *
  7250. * @return \Symfony\Component\Translation\MessageSelector
  7251. * @static
  7252. */
  7253. public static function getSelector(){
  7254. //Method inherited from \Illuminate\Translation\Translator
  7255. return \Illuminate\Translation\Translator::getSelector();
  7256. }
  7257. /**
  7258. * Set the message selector instance.
  7259. *
  7260. * @param \Symfony\Component\Translation\MessageSelector $selector
  7261. * @return void
  7262. * @static
  7263. */
  7264. public static function setSelector($selector){
  7265. //Method inherited from \Illuminate\Translation\Translator
  7266. \Illuminate\Translation\Translator::setSelector($selector);
  7267. }
  7268. /**
  7269. * Get the language line loader implementation.
  7270. *
  7271. * @return \Illuminate\Translation\LoaderInterface
  7272. * @static
  7273. */
  7274. public static function getLoader(){
  7275. //Method inherited from \Illuminate\Translation\Translator
  7276. return \Illuminate\Translation\Translator::getLoader();
  7277. }
  7278. /**
  7279. * Get the default locale being used.
  7280. *
  7281. * @return string
  7282. * @static
  7283. */
  7284. public static function locale(){
  7285. //Method inherited from \Illuminate\Translation\Translator
  7286. return \Illuminate\Translation\Translator::locale();
  7287. }
  7288. /**
  7289. * Get the default locale being used.
  7290. *
  7291. * @return string
  7292. * @static
  7293. */
  7294. public static function getLocale(){
  7295. //Method inherited from \Illuminate\Translation\Translator
  7296. return \Illuminate\Translation\Translator::getLocale();
  7297. }
  7298. /**
  7299. * Set the default locale.
  7300. *
  7301. * @param string $locale
  7302. * @return void
  7303. * @static
  7304. */
  7305. public static function setLocale($locale){
  7306. //Method inherited from \Illuminate\Translation\Translator
  7307. \Illuminate\Translation\Translator::setLocale($locale);
  7308. }
  7309. /**
  7310. * Get the fallback locale being used.
  7311. *
  7312. * @return string
  7313. * @static
  7314. */
  7315. public static function getFallback(){
  7316. //Method inherited from \Illuminate\Translation\Translator
  7317. return \Illuminate\Translation\Translator::getFallback();
  7318. }
  7319. /**
  7320. * Set the fallback locale being used.
  7321. *
  7322. * @param string $fallback
  7323. * @return void
  7324. * @static
  7325. */
  7326. public static function setFallback($fallback){
  7327. //Method inherited from \Illuminate\Translation\Translator
  7328. \Illuminate\Translation\Translator::setFallback($fallback);
  7329. }
  7330. /**
  7331. * Set the parsed value of a key.
  7332. *
  7333. * @param string $key
  7334. * @param array $parsed
  7335. * @return void
  7336. * @static
  7337. */
  7338. public static function setParsedKey($key, $parsed){
  7339. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7340. \Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  7341. }
  7342. }
  7343. class Log extends \Illuminate\Support\Facades\Log{
  7344. /**
  7345. * Create a new log writer instance.
  7346. *
  7347. * @param \Monolog\Logger $monolog
  7348. * @param \Illuminate\Events\Dispatcher $dispatcher
  7349. * @return void
  7350. * @static
  7351. */
  7352. public static function __construct($monolog, $dispatcher = null){
  7353. //Method inherited from \Illuminate\Log\Writer
  7354. \Illuminate\Log\Writer::__construct($monolog, $dispatcher);
  7355. }
  7356. /**
  7357. * Register a file log handler.
  7358. *
  7359. * @param string $path
  7360. * @param string $level
  7361. * @return void
  7362. * @static
  7363. */
  7364. public static function useFiles($path, $level = 'debug'){
  7365. //Method inherited from \Illuminate\Log\Writer
  7366. \Illuminate\Log\Writer::useFiles($path, $level);
  7367. }
  7368. /**
  7369. * Register a daily file log handler.
  7370. *
  7371. * @param string $path
  7372. * @param int $days
  7373. * @param string $level
  7374. * @return void
  7375. * @static
  7376. */
  7377. public static function useDailyFiles($path, $days = 0, $level = 'debug'){
  7378. //Method inherited from \Illuminate\Log\Writer
  7379. \Illuminate\Log\Writer::useDailyFiles($path, $days, $level);
  7380. }
  7381. /**
  7382. * Register a new callback handler for when
  7383. * a log event is triggered.
  7384. *
  7385. * @param Closure $callback
  7386. * @return void
  7387. * @throws \RuntimeException
  7388. * @static
  7389. */
  7390. public static function listen($callback){
  7391. //Method inherited from \Illuminate\Log\Writer
  7392. \Illuminate\Log\Writer::listen($callback);
  7393. }
  7394. /**
  7395. * Get the underlying Monolog instance.
  7396. *
  7397. * @return \Monolog\Logger
  7398. * @static
  7399. */
  7400. public static function getMonolog(){
  7401. //Method inherited from \Illuminate\Log\Writer
  7402. return \Illuminate\Log\Writer::getMonolog();
  7403. }
  7404. /**
  7405. * Get the event dispatcher instance.
  7406. *
  7407. * @return \Illuminate\Events\Dispatcher
  7408. * @static
  7409. */
  7410. public static function getEventDispatcher(){
  7411. //Method inherited from \Illuminate\Log\Writer
  7412. return \Illuminate\Log\Writer::getEventDispatcher();
  7413. }
  7414. /**
  7415. * Set the event dispatcher instance.
  7416. *
  7417. * @param \Illuminate\Events\Dispatcher
  7418. * @return void
  7419. * @static
  7420. */
  7421. public static function setEventDispatcher($dispatcher){
  7422. //Method inherited from \Illuminate\Log\Writer
  7423. \Illuminate\Log\Writer::setEventDispatcher($dispatcher);
  7424. }
  7425. /**
  7426. * Dynamically pass log calls into the writer.
  7427. *
  7428. * @param dynamic (level, param, param)
  7429. * @return mixed
  7430. * @static
  7431. */
  7432. public static function write(){
  7433. //Method inherited from \Illuminate\Log\Writer
  7434. return \Illuminate\Log\Writer::write();
  7435. }
  7436. /**
  7437. * Dynamically handle error additions.
  7438. *
  7439. * @param string $method
  7440. * @param array $parameters
  7441. * @return mixed
  7442. * @throws \BadMethodCallException
  7443. * @static
  7444. */
  7445. public static function __call($method, $parameters){
  7446. //Method inherited from \Illuminate\Log\Writer
  7447. return \Illuminate\Log\Writer::__call($method, $parameters);
  7448. }
  7449. /**
  7450. * Adds a log record at the DEBUG level.
  7451. *
  7452. * @param string $message The log message
  7453. * @param array $context The log context
  7454. * @return Boolean Whether the record has been processed
  7455. * @static
  7456. */
  7457. public static function debug($message, $context = array()){
  7458. //Method inherited from \Monolog\Logger
  7459. return \Monolog\Logger::addDebug($message, $context);
  7460. }
  7461. /**
  7462. * Adds a log record at the INFO level.
  7463. *
  7464. * @param string $message The log message
  7465. * @param array $context The log context
  7466. * @return Boolean Whether the record has been processed
  7467. * @static
  7468. */
  7469. public static function info($message, $context = array()){
  7470. //Method inherited from \Monolog\Logger
  7471. return \Monolog\Logger::addInfo($message, $context);
  7472. }
  7473. /**
  7474. * Adds a log record at the NOTICE level.
  7475. *
  7476. * @param string $message The log message
  7477. * @param array $context The log context
  7478. * @return Boolean Whether the record has been processed
  7479. * @static
  7480. */
  7481. public static function notice($message, $context = array()){
  7482. //Method inherited from \Monolog\Logger
  7483. return \Monolog\Logger::addNotice($message, $context);
  7484. }
  7485. /**
  7486. * Adds a log record at the WARNING level.
  7487. *
  7488. * @param string $message The log message
  7489. * @param array $context The log context
  7490. * @return Boolean Whether the record has been processed
  7491. * @static
  7492. */
  7493. public static function warning($message, $context = array()){
  7494. //Method inherited from \Monolog\Logger
  7495. return \Monolog\Logger::addWarning($message, $context);
  7496. }
  7497. /**
  7498. * Adds a log record at the ERROR level.
  7499. *
  7500. * @param string $message The log message
  7501. * @param array $context The log context
  7502. * @return Boolean Whether the record has been processed
  7503. * @static
  7504. */
  7505. public static function error($message, $context = array()){
  7506. //Method inherited from \Monolog\Logger
  7507. return \Monolog\Logger::addError($message, $context);
  7508. }
  7509. /**
  7510. * Adds a log record at the CRITICAL level.
  7511. *
  7512. * @param string $message The log message
  7513. * @param array $context The log context
  7514. * @return Boolean Whether the record has been processed
  7515. * @static
  7516. */
  7517. public static function critical($message, $context = array()){
  7518. //Method inherited from \Monolog\Logger
  7519. return \Monolog\Logger::addCritical($message, $context);
  7520. }
  7521. /**
  7522. * Adds a log record at the ALERT level.
  7523. *
  7524. * @param string $message The log message
  7525. * @param array $context The log context
  7526. * @return Boolean Whether the record has been processed
  7527. * @static
  7528. */
  7529. public static function alert($message, $context = array()){
  7530. //Method inherited from \Monolog\Logger
  7531. return \Monolog\Logger::addAlert($message, $context);
  7532. }
  7533. /**
  7534. * Adds a log record at the EMERGENCY level.
  7535. *
  7536. * @param string $message The log message
  7537. * @param array $context The log context
  7538. * @return Boolean Whether the record has been processed
  7539. * @static
  7540. */
  7541. public static function emergency($message, $context = array()){
  7542. //Method inherited from \Monolog\Logger
  7543. return \Monolog\Logger::addEmergency($message, $context);
  7544. }
  7545. }
  7546. class Mail extends \Illuminate\Support\Facades\Mail{
  7547. /**
  7548. * Create a new Mailer instance.
  7549. *
  7550. * @param \Illuminate\View\Environment $views
  7551. * @param \Swift_Mailer $swift
  7552. * @return void
  7553. * @static
  7554. */
  7555. public static function __construct($views, $swift){
  7556. //Method inherited from \Illuminate\Mail\Mailer
  7557. \Illuminate\Mail\Mailer::__construct($views, $swift);
  7558. }
  7559. /**
  7560. * Set the global from address and name.
  7561. *
  7562. * @param string $address
  7563. * @param string $name
  7564. * @return void
  7565. * @static
  7566. */
  7567. public static function alwaysFrom($address, $name = null){
  7568. //Method inherited from \Illuminate\Mail\Mailer
  7569. \Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  7570. }
  7571. /**
  7572. * Send a new message when only a plain part.
  7573. *
  7574. * @param string $view
  7575. * @param array $data
  7576. * @param mixed $callback
  7577. * @return int
  7578. * @static
  7579. */
  7580. public static function plain($view, $data, $callback){
  7581. //Method inherited from \Illuminate\Mail\Mailer
  7582. return \Illuminate\Mail\Mailer::plain($view, $data, $callback);
  7583. }
  7584. /**
  7585. * Send a new message using a view.
  7586. *
  7587. * @param string|array $view
  7588. * @param array $data
  7589. * @param Closure|string $callback
  7590. * @return int
  7591. * @static
  7592. */
  7593. public static function send($view, $data, $callback){
  7594. //Method inherited from \Illuminate\Mail\Mailer
  7595. return \Illuminate\Mail\Mailer::send($view, $data, $callback);
  7596. }
  7597. /**
  7598. * Queue a new e-mail message for sending.
  7599. *
  7600. * @param string|array $view
  7601. * @param array $data
  7602. * @param Closure|string $callback
  7603. * @param string $queue
  7604. * @return void
  7605. * @static
  7606. */
  7607. public static function queue($view, $data, $callback, $queue = null){
  7608. //Method inherited from \Illuminate\Mail\Mailer
  7609. \Illuminate\Mail\Mailer::queue($view, $data, $callback, $queue);
  7610. }
  7611. /**
  7612. * Queue a new e-mail message for sending on the given queue.
  7613. *
  7614. * @param string $queue
  7615. * @param string|array $view
  7616. * @param array $data
  7617. * @param Closure|string $callback
  7618. * @return void
  7619. * @static
  7620. */
  7621. public static function queueOn($queue, $view, $data, $callback){
  7622. //Method inherited from \Illuminate\Mail\Mailer
  7623. \Illuminate\Mail\Mailer::queueOn($queue, $view, $data, $callback);
  7624. }
  7625. /**
  7626. * Queue a new e-mail message for sending after (n) seconds.
  7627. *
  7628. * @param int $delay
  7629. * @param string|array $view
  7630. * @param array $data
  7631. * @param Closure|string $callback
  7632. * @param string $queue
  7633. * @return void
  7634. * @static
  7635. */
  7636. public static function later($delay, $view, $data, $callback, $queue = null){
  7637. //Method inherited from \Illuminate\Mail\Mailer
  7638. \Illuminate\Mail\Mailer::later($delay, $view, $data, $callback, $queue);
  7639. }
  7640. /**
  7641. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  7642. *
  7643. * @param string $queue
  7644. * @param int $delay
  7645. * @param string|array $view
  7646. * @param array $data
  7647. * @param Closure|string $callback
  7648. * @return void
  7649. * @static
  7650. */
  7651. public static function laterOn($queue, $delay, $view, $data, $callback){
  7652. //Method inherited from \Illuminate\Mail\Mailer
  7653. \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view, $data, $callback);
  7654. }
  7655. /**
  7656. * Handle a queued e-mail message job.
  7657. *
  7658. * @param \Illuminate\Queue\Jobs\Job $job
  7659. * @param array $data
  7660. * @return void
  7661. * @static
  7662. */
  7663. public static function handleQueuedMessage($job, $data){
  7664. //Method inherited from \Illuminate\Mail\Mailer
  7665. \Illuminate\Mail\Mailer::handleQueuedMessage($job, $data);
  7666. }
  7667. /**
  7668. * Tell the mailer to not really send messages.
  7669. *
  7670. * @param bool $value
  7671. * @return void
  7672. * @static
  7673. */
  7674. public static function pretend($value = true){
  7675. //Method inherited from \Illuminate\Mail\Mailer
  7676. \Illuminate\Mail\Mailer::pretend($value);
  7677. }
  7678. /**
  7679. * Get the view environment instance.
  7680. *
  7681. * @return \Illuminate\View\Environment
  7682. * @static
  7683. */
  7684. public static function getViewEnvironment(){
  7685. //Method inherited from \Illuminate\Mail\Mailer
  7686. return \Illuminate\Mail\Mailer::getViewEnvironment();
  7687. }
  7688. /**
  7689. * Get the Swift Mailer instance.
  7690. *
  7691. * @return \Swift_Mailer
  7692. * @static
  7693. */
  7694. public static function getSwiftMailer(){
  7695. //Method inherited from \Illuminate\Mail\Mailer
  7696. return \Illuminate\Mail\Mailer::getSwiftMailer();
  7697. }
  7698. /**
  7699. * Get the array of failed recipients.
  7700. *
  7701. * @return array
  7702. * @static
  7703. */
  7704. public static function failures(){
  7705. //Method inherited from \Illuminate\Mail\Mailer
  7706. return \Illuminate\Mail\Mailer::failures();
  7707. }
  7708. /**
  7709. * Set the Swift Mailer instance.
  7710. *
  7711. * @param \Swift_Mailer $swift
  7712. * @return void
  7713. * @static
  7714. */
  7715. public static function setSwiftMailer($swift){
  7716. //Method inherited from \Illuminate\Mail\Mailer
  7717. \Illuminate\Mail\Mailer::setSwiftMailer($swift);
  7718. }
  7719. /**
  7720. * Set the log writer instance.
  7721. *
  7722. * @param \Illuminate\Log\Writer $logger
  7723. * @return \Illuminate\Mail\Mailer
  7724. * @static
  7725. */
  7726. public static function setLogger($logger){
  7727. //Method inherited from \Illuminate\Mail\Mailer
  7728. return \Illuminate\Mail\Mailer::setLogger($logger);
  7729. }
  7730. /**
  7731. * Set the queue manager instance.
  7732. *
  7733. * @param \Illuminate\Queue\QueueManager $queue
  7734. * @return \Illuminate\Mail\Mailer
  7735. * @static
  7736. */
  7737. public static function setQueue($queue){
  7738. //Method inherited from \Illuminate\Mail\Mailer
  7739. return \Illuminate\Mail\Mailer::setQueue($queue);
  7740. }
  7741. /**
  7742. * Set the IoC container instance.
  7743. *
  7744. * @param \Illuminate\Container\Container $container
  7745. * @return void
  7746. * @static
  7747. */
  7748. public static function setContainer($container){
  7749. //Method inherited from \Illuminate\Mail\Mailer
  7750. \Illuminate\Mail\Mailer::setContainer($container);
  7751. }
  7752. }
  7753. class Paginator extends \Illuminate\Support\Facades\Paginator{
  7754. /**
  7755. * Create a new pagination environment.
  7756. *
  7757. * @param \Symfony\Component\HttpFoundation\Request $request
  7758. * @param \Illuminate\View\Environment $view
  7759. * @param \Symfony\Component\Translation\TranslatorInterface $trans
  7760. * @param string $pageName
  7761. * @return void
  7762. * @static
  7763. */
  7764. public static function __construct($request, $view, $trans, $pageName = 'page'){
  7765. //Method inherited from \Illuminate\Pagination\Environment
  7766. \Illuminate\Pagination\Environment::__construct($request, $view, $trans, $pageName);
  7767. }
  7768. /**
  7769. * Get a new paginator instance.
  7770. *
  7771. * @param array $items
  7772. * @param int $total
  7773. * @param int $perPage
  7774. * @return \Illuminate\Pagination\Paginator
  7775. * @static
  7776. */
  7777. public static function make($items, $total, $perPage){
  7778. //Method inherited from \Illuminate\Pagination\Environment
  7779. return \Illuminate\Pagination\Environment::make($items, $total, $perPage);
  7780. }
  7781. /**
  7782. * Get the pagination view.
  7783. *
  7784. * @param \Illuminate\Pagination\Paginator $paginator
  7785. * @param string $view
  7786. * @return \Illuminate\View\View
  7787. * @static
  7788. */
  7789. public static function getPaginationView($paginator, $view = null){
  7790. //Method inherited from \Illuminate\Pagination\Environment
  7791. return \Illuminate\Pagination\Environment::getPaginationView($paginator, $view);
  7792. }
  7793. /**
  7794. * Get the number of the current page.
  7795. *
  7796. * @return int
  7797. * @static
  7798. */
  7799. public static function getCurrentPage(){
  7800. //Method inherited from \Illuminate\Pagination\Environment
  7801. return \Illuminate\Pagination\Environment::getCurrentPage();
  7802. }
  7803. /**
  7804. * Set the number of the current page.
  7805. *
  7806. * @param int $number
  7807. * @return void
  7808. * @static
  7809. */
  7810. public static function setCurrentPage($number){
  7811. //Method inherited from \Illuminate\Pagination\Environment
  7812. \Illuminate\Pagination\Environment::setCurrentPage($number);
  7813. }
  7814. /**
  7815. * Get the root URL for the request.
  7816. *
  7817. * @return string
  7818. * @static
  7819. */
  7820. public static function getCurrentUrl(){
  7821. //Method inherited from \Illuminate\Pagination\Environment
  7822. return \Illuminate\Pagination\Environment::getCurrentUrl();
  7823. }
  7824. /**
  7825. * Set the base URL in use by the paginator.
  7826. *
  7827. * @param string $baseUrl
  7828. * @return void
  7829. * @static
  7830. */
  7831. public static function setBaseUrl($baseUrl){
  7832. //Method inherited from \Illuminate\Pagination\Environment
  7833. \Illuminate\Pagination\Environment::setBaseUrl($baseUrl);
  7834. }
  7835. /**
  7836. * Set the input page parameter name used by the paginator.
  7837. *
  7838. * @param string $pageName
  7839. * @return void
  7840. * @static
  7841. */
  7842. public static function setPageName($pageName){
  7843. //Method inherited from \Illuminate\Pagination\Environment
  7844. \Illuminate\Pagination\Environment::setPageName($pageName);
  7845. }
  7846. /**
  7847. * Get the input page parameter name used by the paginator.
  7848. *
  7849. * @return string
  7850. * @static
  7851. */
  7852. public static function getPageName(){
  7853. //Method inherited from \Illuminate\Pagination\Environment
  7854. return \Illuminate\Pagination\Environment::getPageName();
  7855. }
  7856. /**
  7857. * Get the name of the pagination view.
  7858. *
  7859. * @param string $view
  7860. * @return string
  7861. * @static
  7862. */
  7863. public static function getViewName($view = null){
  7864. //Method inherited from \Illuminate\Pagination\Environment
  7865. return \Illuminate\Pagination\Environment::getViewName($view);
  7866. }
  7867. /**
  7868. * Set the name of the pagination view.
  7869. *
  7870. * @param string $viewName
  7871. * @return void
  7872. * @static
  7873. */
  7874. public static function setViewName($viewName){
  7875. //Method inherited from \Illuminate\Pagination\Environment
  7876. \Illuminate\Pagination\Environment::setViewName($viewName);
  7877. }
  7878. /**
  7879. * Get the locale of the paginator.
  7880. *
  7881. * @return string
  7882. * @static
  7883. */
  7884. public static function getLocale(){
  7885. //Method inherited from \Illuminate\Pagination\Environment
  7886. return \Illuminate\Pagination\Environment::getLocale();
  7887. }
  7888. /**
  7889. * Set the locale of the paginator.
  7890. *
  7891. * @param string $locale
  7892. * @return void
  7893. * @static
  7894. */
  7895. public static function setLocale($locale){
  7896. //Method inherited from \Illuminate\Pagination\Environment
  7897. \Illuminate\Pagination\Environment::setLocale($locale);
  7898. }
  7899. /**
  7900. * Get the active request instance.
  7901. *
  7902. * @return \Symfony\Component\HttpFoundation\Request
  7903. * @static
  7904. */
  7905. public static function getRequest(){
  7906. //Method inherited from \Illuminate\Pagination\Environment
  7907. return \Illuminate\Pagination\Environment::getRequest();
  7908. }
  7909. /**
  7910. * Set the active request instance.
  7911. *
  7912. * @param \Symfony\Component\HttpFoundation\Request $request
  7913. * @return void
  7914. * @static
  7915. */
  7916. public static function setRequest($request){
  7917. //Method inherited from \Illuminate\Pagination\Environment
  7918. \Illuminate\Pagination\Environment::setRequest($request);
  7919. }
  7920. /**
  7921. * Get the current view driver.
  7922. *
  7923. * @return \Illuminate\View\Environment
  7924. * @static
  7925. */
  7926. public static function getViewDriver(){
  7927. //Method inherited from \Illuminate\Pagination\Environment
  7928. return \Illuminate\Pagination\Environment::getViewDriver();
  7929. }
  7930. /**
  7931. * Set the current view driver.
  7932. *
  7933. * @param \Illuminate\View\Environment $view
  7934. * @return void
  7935. * @static
  7936. */
  7937. public static function setViewDriver($view){
  7938. //Method inherited from \Illuminate\Pagination\Environment
  7939. \Illuminate\Pagination\Environment::setViewDriver($view);
  7940. }
  7941. /**
  7942. * Get the translator instance.
  7943. *
  7944. * @return \Symfony\Component\Translation\TranslatorInterface
  7945. * @static
  7946. */
  7947. public static function getTranslator(){
  7948. //Method inherited from \Illuminate\Pagination\Environment
  7949. return \Illuminate\Pagination\Environment::getTranslator();
  7950. }
  7951. }
  7952. class Password extends \Illuminate\Support\Facades\Password{
  7953. /**
  7954. * Create a new password broker instance.
  7955. *
  7956. * @param \Illuminate\Auth\Reminders\ReminderRepositoryInterface $reminders
  7957. * @param \Illuminate\Auth\UserProviderInterface $users
  7958. * @param \Illuminate\Mail\Mailer $mailer
  7959. * @param string $reminderView
  7960. * @return void
  7961. * @static
  7962. */
  7963. public static function __construct($reminders, $users, $mailer, $reminderView){
  7964. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  7965. \Illuminate\Auth\Reminders\PasswordBroker::__construct($reminders, $users, $mailer, $reminderView);
  7966. }
  7967. /**
  7968. * Send a password reminder to a user.
  7969. *
  7970. * @param array $credentials
  7971. * @param Closure $callback
  7972. * @return string
  7973. * @static
  7974. */
  7975. public static function remind($credentials, $callback = null){
  7976. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  7977. return \Illuminate\Auth\Reminders\PasswordBroker::remind($credentials, $callback);
  7978. }
  7979. /**
  7980. * Send the password reminder e-mail.
  7981. *
  7982. * @param \Illuminate\Auth\Reminders\RemindableInterface $user
  7983. * @param string $token
  7984. * @param Closure $callback
  7985. * @return int
  7986. * @static
  7987. */
  7988. public static function sendReminder($user, $token, $callback = null){
  7989. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  7990. return \Illuminate\Auth\Reminders\PasswordBroker::sendReminder($user, $token, $callback);
  7991. }
  7992. /**
  7993. * Reset the password for the given token.
  7994. *
  7995. * @param array $credentials
  7996. * @param Closure $callback
  7997. * @return mixed
  7998. * @static
  7999. */
  8000. public static function reset($credentials, $callback){
  8001. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8002. return \Illuminate\Auth\Reminders\PasswordBroker::reset($credentials, $callback);
  8003. }
  8004. /**
  8005. * Set a custom password validator.
  8006. *
  8007. * @param \Closure $callback
  8008. * @return void
  8009. * @static
  8010. */
  8011. public static function validator($callback){
  8012. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8013. \Illuminate\Auth\Reminders\PasswordBroker::validator($callback);
  8014. }
  8015. /**
  8016. * Get the user for the given credentials.
  8017. *
  8018. * @param array $credentials
  8019. * @return \Illuminate\Auth\Reminders\RemindableInterface
  8020. * @throws \UnexpectedValueException
  8021. * @static
  8022. */
  8023. public static function getUser($credentials){
  8024. //Method inherited from \Illuminate\Auth\Reminders\PasswordBroker
  8025. return \Illuminate\Auth\Reminders\PasswordBroker::getUser($credentials);
  8026. }
  8027. }
  8028. class Queue extends \Illuminate\Support\Facades\Queue{
  8029. /**
  8030. * Create a new queue manager instance.
  8031. *
  8032. * @param \Illuminate\Foundation\Application $app
  8033. * @return void
  8034. * @static
  8035. */
  8036. public static function __construct($app){
  8037. //Method inherited from \Illuminate\Queue\QueueManager
  8038. \Illuminate\Queue\QueueManager::__construct($app);
  8039. }
  8040. /**
  8041. * Register an event listener for the failed job event.
  8042. *
  8043. * @param mixed $callback
  8044. * @return void
  8045. * @static
  8046. */
  8047. public static function failing($callback){
  8048. //Method inherited from \Illuminate\Queue\QueueManager
  8049. \Illuminate\Queue\QueueManager::failing($callback);
  8050. }
  8051. /**
  8052. * Determine if the driver is connected.
  8053. *
  8054. * @param string $name
  8055. * @return bool
  8056. * @static
  8057. */
  8058. public static function connected($name = null){
  8059. //Method inherited from \Illuminate\Queue\QueueManager
  8060. return \Illuminate\Queue\QueueManager::connected($name);
  8061. }
  8062. /**
  8063. * Resolve a queue connection instance.
  8064. *
  8065. * @param string $name
  8066. * @return \Illuminate\Queue\QueueInterface
  8067. * @static
  8068. */
  8069. public static function connection($name = null){
  8070. //Method inherited from \Illuminate\Queue\QueueManager
  8071. return \Illuminate\Queue\QueueManager::connection($name);
  8072. }
  8073. /**
  8074. * Add a queue connection resolver.
  8075. *
  8076. * @param string $driver
  8077. * @param Closure $resolver
  8078. * @return void
  8079. * @static
  8080. */
  8081. public static function extend($driver, $resolver){
  8082. //Method inherited from \Illuminate\Queue\QueueManager
  8083. \Illuminate\Queue\QueueManager::extend($driver, $resolver);
  8084. }
  8085. /**
  8086. * Add a queue connection resolver.
  8087. *
  8088. * @param string $driver
  8089. * @param Closure $resolver
  8090. * @return void
  8091. * @static
  8092. */
  8093. public static function addConnector($driver, $resolver){
  8094. //Method inherited from \Illuminate\Queue\QueueManager
  8095. \Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  8096. }
  8097. /**
  8098. * Get the name of the default queue connection.
  8099. *
  8100. * @return string
  8101. * @static
  8102. */
  8103. public static function getDefaultDriver(){
  8104. //Method inherited from \Illuminate\Queue\QueueManager
  8105. return \Illuminate\Queue\QueueManager::getDefaultDriver();
  8106. }
  8107. /**
  8108. * Set the name of the default queue connection.
  8109. *
  8110. * @param string $name
  8111. * @return void
  8112. * @static
  8113. */
  8114. public static function setDefaultDriver($name){
  8115. //Method inherited from \Illuminate\Queue\QueueManager
  8116. \Illuminate\Queue\QueueManager::setDefaultDriver($name);
  8117. }
  8118. /**
  8119. * Get the full name for the given connection.
  8120. *
  8121. * @param string $connection
  8122. * @return string
  8123. * @static
  8124. */
  8125. public static function getName($connection = null){
  8126. //Method inherited from \Illuminate\Queue\QueueManager
  8127. return \Illuminate\Queue\QueueManager::getName($connection);
  8128. }
  8129. /**
  8130. * Dynamically pass calls to the default connection.
  8131. *
  8132. * @param string $method
  8133. * @param array $parameters
  8134. * @return mixed
  8135. * @static
  8136. */
  8137. public static function __call($method, $parameters){
  8138. //Method inherited from \Illuminate\Queue\QueueManager
  8139. return \Illuminate\Queue\QueueManager::__call($method, $parameters);
  8140. }
  8141. /**
  8142. * Push a new job onto the queue.
  8143. *
  8144. * @param string $job
  8145. * @param mixed $data
  8146. * @param string $queue
  8147. * @return mixed
  8148. * @static
  8149. */
  8150. public static function push($job, $data = '', $queue = null){
  8151. //Method inherited from \Illuminate\Queue\SyncQueue
  8152. return \Illuminate\Queue\SyncQueue::push($job, $data, $queue);
  8153. }
  8154. /**
  8155. * Push a raw payload onto the queue.
  8156. *
  8157. * @param string $payload
  8158. * @param string $queue
  8159. * @param array $options
  8160. * @return mixed
  8161. * @static
  8162. */
  8163. public static function pushRaw($payload, $queue = null, $options = array()){
  8164. //Method inherited from \Illuminate\Queue\SyncQueue
  8165. return \Illuminate\Queue\SyncQueue::pushRaw($payload, $queue, $options);
  8166. }
  8167. /**
  8168. * Push a new job onto the queue after a delay.
  8169. *
  8170. * @param \DateTime|int $delay
  8171. * @param string $job
  8172. * @param mixed $data
  8173. * @param string $queue
  8174. * @return mixed
  8175. * @static
  8176. */
  8177. public static function later($delay, $job, $data = '', $queue = null){
  8178. //Method inherited from \Illuminate\Queue\SyncQueue
  8179. return \Illuminate\Queue\SyncQueue::later($delay, $job, $data, $queue);
  8180. }
  8181. /**
  8182. * Pop the next job off of the queue.
  8183. *
  8184. * @param string $queue
  8185. * @return \Illuminate\Queue\Jobs\Job|null
  8186. * @static
  8187. */
  8188. public static function pop($queue = null){
  8189. //Method inherited from \Illuminate\Queue\SyncQueue
  8190. return \Illuminate\Queue\SyncQueue::pop($queue);
  8191. }
  8192. /**
  8193. * Marshal a push queue request and fire the job.
  8194. *
  8195. * @throws \RuntimeException
  8196. * @static
  8197. */
  8198. public static function marshal(){
  8199. //Method inherited from \Illuminate\Queue\Queue
  8200. \Illuminate\Queue\SyncQueue::marshal();
  8201. }
  8202. /**
  8203. * Push a new an array of jobs onto the queue.
  8204. *
  8205. * @param array $jobs
  8206. * @param mixed $data
  8207. * @param string $queue
  8208. * @return mixed
  8209. * @static
  8210. */
  8211. public static function bulk($jobs, $data = '', $queue = null){
  8212. //Method inherited from \Illuminate\Queue\Queue
  8213. return \Illuminate\Queue\SyncQueue::bulk($jobs, $data, $queue);
  8214. }
  8215. /**
  8216. * Get the current UNIX timestamp.
  8217. *
  8218. * @return int
  8219. * @static
  8220. */
  8221. public static function getTime(){
  8222. //Method inherited from \Illuminate\Queue\Queue
  8223. return \Illuminate\Queue\SyncQueue::getTime();
  8224. }
  8225. /**
  8226. * Set the IoC container instance.
  8227. *
  8228. * @param \Illuminate\Container\Container $container
  8229. * @return void
  8230. * @static
  8231. */
  8232. public static function setContainer($container){
  8233. //Method inherited from \Illuminate\Queue\Queue
  8234. \Illuminate\Queue\SyncQueue::setContainer($container);
  8235. }
  8236. }
  8237. class Redirect extends \Illuminate\Support\Facades\Redirect{
  8238. /**
  8239. * Create a new Redirector instance.
  8240. *
  8241. * @param \Illuminate\Routing\UrlGenerator $generator
  8242. * @return void
  8243. * @static
  8244. */
  8245. public static function __construct($generator){
  8246. //Method inherited from \Illuminate\Routing\Redirector
  8247. \Illuminate\Routing\Redirector::__construct($generator);
  8248. }
  8249. /**
  8250. * Create a new redirect response to the "home" route.
  8251. *
  8252. * @param int $status
  8253. * @return \Illuminate\Http\RedirectResponse
  8254. * @static
  8255. */
  8256. public static function home($status = 302){
  8257. //Method inherited from \Illuminate\Routing\Redirector
  8258. return \Illuminate\Routing\Redirector::home($status);
  8259. }
  8260. /**
  8261. * Create a new redirect response to the previous location.
  8262. *
  8263. * @param int $status
  8264. * @param array $headers
  8265. * @return \Illuminate\Http\RedirectResponse
  8266. * @static
  8267. */
  8268. public static function back($status = 302, $headers = array()){
  8269. //Method inherited from \Illuminate\Routing\Redirector
  8270. return \Illuminate\Routing\Redirector::back($status, $headers);
  8271. }
  8272. /**
  8273. * Create a new redirect response to the current URI.
  8274. *
  8275. * @param int $status
  8276. * @param array $headers
  8277. * @return \Illuminate\Http\RedirectResponse
  8278. * @static
  8279. */
  8280. public static function refresh($status = 302, $headers = array()){
  8281. //Method inherited from \Illuminate\Routing\Redirector
  8282. return \Illuminate\Routing\Redirector::refresh($status, $headers);
  8283. }
  8284. /**
  8285. * Create a new redirect response, while putting the current URL in the session.
  8286. *
  8287. * @param string $path
  8288. * @param int $status
  8289. * @param array $headers
  8290. * @param bool $secure
  8291. * @return \Illuminate\Http\RedirectResponse
  8292. * @static
  8293. */
  8294. public static function guest($path, $status = 302, $headers = array(), $secure = null){
  8295. //Method inherited from \Illuminate\Routing\Redirector
  8296. return \Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  8297. }
  8298. /**
  8299. * Create a new redirect response to the previously intended location.
  8300. *
  8301. * @param string $default
  8302. * @param int $status
  8303. * @param array $headers
  8304. * @param bool $secure
  8305. * @return \Illuminate\Http\RedirectResponse
  8306. * @static
  8307. */
  8308. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null){
  8309. //Method inherited from \Illuminate\Routing\Redirector
  8310. return \Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  8311. }
  8312. /**
  8313. * Create a new redirect response to the given path.
  8314. *
  8315. * @param string $path
  8316. * @param int $status
  8317. * @param array $headers
  8318. * @param bool $secure
  8319. * @return \Illuminate\Http\RedirectResponse
  8320. * @static
  8321. */
  8322. public static function to($path, $status = 302, $headers = array(), $secure = null){
  8323. //Method inherited from \Illuminate\Routing\Redirector
  8324. return \Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  8325. }
  8326. /**
  8327. * Create a new redirect response to an external URL (no validation).
  8328. *
  8329. * @param string $path
  8330. * @param int $status
  8331. * @param array $headers
  8332. * @return \Illuminate\Http\RedirectResponse
  8333. * @static
  8334. */
  8335. public static function away($path, $status = 302, $headers = array()){
  8336. //Method inherited from \Illuminate\Routing\Redirector
  8337. return \Illuminate\Routing\Redirector::away($path, $status, $headers);
  8338. }
  8339. /**
  8340. * Create a new redirect response to the given HTTPS path.
  8341. *
  8342. * @param string $path
  8343. * @param int $status
  8344. * @param array $headers
  8345. * @return \Illuminate\Http\RedirectResponse
  8346. * @static
  8347. */
  8348. public static function secure($path, $status = 302, $headers = array()){
  8349. //Method inherited from \Illuminate\Routing\Redirector
  8350. return \Illuminate\Routing\Redirector::secure($path, $status, $headers);
  8351. }
  8352. /**
  8353. * Create a new redirect response to a named route.
  8354. *
  8355. * @param string $route
  8356. * @param array $parameters
  8357. * @param int $status
  8358. * @param array $headers
  8359. * @return \Illuminate\Http\RedirectResponse
  8360. * @static
  8361. */
  8362. public static function route($route, $parameters = array(), $status = 302, $headers = array()){
  8363. //Method inherited from \Illuminate\Routing\Redirector
  8364. return \Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  8365. }
  8366. /**
  8367. * Create a new redirect response to a controller action.
  8368. *
  8369. * @param string $action
  8370. * @param array $parameters
  8371. * @param int $status
  8372. * @param array $headers
  8373. * @return \Illuminate\Http\RedirectResponse
  8374. * @static
  8375. */
  8376. public static function action($action, $parameters = array(), $status = 302, $headers = array()){
  8377. //Method inherited from \Illuminate\Routing\Redirector
  8378. return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  8379. }
  8380. /**
  8381. * Get the URL generator instance.
  8382. *
  8383. * @return \Illuminate\Routing\UrlGenerator
  8384. * @static
  8385. */
  8386. public static function getUrlGenerator(){
  8387. //Method inherited from \Illuminate\Routing\Redirector
  8388. return \Illuminate\Routing\Redirector::getUrlGenerator();
  8389. }
  8390. /**
  8391. * Set the active session store.
  8392. *
  8393. * @param \Illuminate\Session\Store $session
  8394. * @return void
  8395. * @static
  8396. */
  8397. public static function setSession($session){
  8398. //Method inherited from \Illuminate\Routing\Redirector
  8399. \Illuminate\Routing\Redirector::setSession($session);
  8400. }
  8401. }
  8402. class Redis extends \Illuminate\Support\Facades\Redis{
  8403. /**
  8404. * Create a new Redis connection instance.
  8405. *
  8406. * @param array $servers
  8407. * @return void
  8408. * @static
  8409. */
  8410. public static function __construct($servers = array()){
  8411. //Method inherited from \Illuminate\Redis\Database
  8412. \Illuminate\Redis\Database::__construct($servers);
  8413. }
  8414. /**
  8415. * Get a specific Redis connection instance.
  8416. *
  8417. * @param string $name
  8418. * @return \Predis\Connection\SingleConnectionInterface
  8419. * @static
  8420. */
  8421. public static function connection($name = 'default'){
  8422. //Method inherited from \Illuminate\Redis\Database
  8423. return \Illuminate\Redis\Database::connection($name);
  8424. }
  8425. /**
  8426. * Run a command against the Redis database.
  8427. *
  8428. * @param string $method
  8429. * @param array $parameters
  8430. * @return mixed
  8431. * @static
  8432. */
  8433. public static function command($method, $parameters = array()){
  8434. //Method inherited from \Illuminate\Redis\Database
  8435. return \Illuminate\Redis\Database::command($method, $parameters);
  8436. }
  8437. /**
  8438. * Dynamically make a Redis command.
  8439. *
  8440. * @param string $method
  8441. * @param array $parameters
  8442. * @return mixed
  8443. * @static
  8444. */
  8445. public static function __call($method, $parameters){
  8446. //Method inherited from \Illuminate\Redis\Database
  8447. return \Illuminate\Redis\Database::__call($method, $parameters);
  8448. }
  8449. }
  8450. class Request extends \Illuminate\Support\Facades\Request{
  8451. /**
  8452. * Return the Request instance.
  8453. *
  8454. * @return \Illuminate\Http\Request
  8455. * @static
  8456. */
  8457. public static function instance(){
  8458. //Method inherited from \Illuminate\Http\Request
  8459. return \Illuminate\Http\Request::instance();
  8460. }
  8461. /**
  8462. * Get the request method.
  8463. *
  8464. * @return string
  8465. * @static
  8466. */
  8467. public static function method(){
  8468. //Method inherited from \Illuminate\Http\Request
  8469. return \Illuminate\Http\Request::method();
  8470. }
  8471. /**
  8472. * Get the root URL for the application.
  8473. *
  8474. * @return string
  8475. * @static
  8476. */
  8477. public static function root(){
  8478. //Method inherited from \Illuminate\Http\Request
  8479. return \Illuminate\Http\Request::root();
  8480. }
  8481. /**
  8482. * Get the URL (no query string) for the request.
  8483. *
  8484. * @return string
  8485. * @static
  8486. */
  8487. public static function url(){
  8488. //Method inherited from \Illuminate\Http\Request
  8489. return \Illuminate\Http\Request::url();
  8490. }
  8491. /**
  8492. * Get the full URL for the request.
  8493. *
  8494. * @return string
  8495. * @static
  8496. */
  8497. public static function fullUrl(){
  8498. //Method inherited from \Illuminate\Http\Request
  8499. return \Illuminate\Http\Request::fullUrl();
  8500. }
  8501. /**
  8502. * Get the current path info for the request.
  8503. *
  8504. * @return string
  8505. * @static
  8506. */
  8507. public static function path(){
  8508. //Method inherited from \Illuminate\Http\Request
  8509. return \Illuminate\Http\Request::path();
  8510. }
  8511. /**
  8512. * Get the current encoded path info for the request.
  8513. *
  8514. * @return string
  8515. * @static
  8516. */
  8517. public static function decodedPath(){
  8518. //Method inherited from \Illuminate\Http\Request
  8519. return \Illuminate\Http\Request::decodedPath();
  8520. }
  8521. /**
  8522. * Get a segment from the URI (1 based index).
  8523. *
  8524. * @param string $index
  8525. * @param mixed $default
  8526. * @return string
  8527. * @static
  8528. */
  8529. public static function segment($index, $default = null){
  8530. //Method inherited from \Illuminate\Http\Request
  8531. return \Illuminate\Http\Request::segment($index, $default);
  8532. }
  8533. /**
  8534. * Get all of the segments for the request path.
  8535. *
  8536. * @return array
  8537. * @static
  8538. */
  8539. public static function segments(){
  8540. //Method inherited from \Illuminate\Http\Request
  8541. return \Illuminate\Http\Request::segments();
  8542. }
  8543. /**
  8544. * Determine if the current request URI matches a pattern.
  8545. *
  8546. * @param dynamic string
  8547. * @return bool
  8548. * @static
  8549. */
  8550. public static function is(){
  8551. //Method inherited from \Illuminate\Http\Request
  8552. return \Illuminate\Http\Request::is();
  8553. }
  8554. /**
  8555. * Determine if the request is the result of an AJAX call.
  8556. *
  8557. * @return bool
  8558. * @static
  8559. */
  8560. public static function ajax(){
  8561. //Method inherited from \Illuminate\Http\Request
  8562. return \Illuminate\Http\Request::ajax();
  8563. }
  8564. /**
  8565. * Determine if the request is over HTTPS.
  8566. *
  8567. * @return bool
  8568. * @static
  8569. */
  8570. public static function secure(){
  8571. //Method inherited from \Illuminate\Http\Request
  8572. return \Illuminate\Http\Request::secure();
  8573. }
  8574. /**
  8575. * Determine if the request contains a given input item key.
  8576. *
  8577. * @param string|array $key
  8578. * @return bool
  8579. * @static
  8580. */
  8581. public static function exists($key){
  8582. //Method inherited from \Illuminate\Http\Request
  8583. return \Illuminate\Http\Request::exists($key);
  8584. }
  8585. /**
  8586. * Determine if the request contains a non-emtpy value for an input item.
  8587. *
  8588. * @param string|array $key
  8589. * @return bool
  8590. * @static
  8591. */
  8592. public static function has($key){
  8593. //Method inherited from \Illuminate\Http\Request
  8594. return \Illuminate\Http\Request::has($key);
  8595. }
  8596. /**
  8597. * Get all of the input and files for the request.
  8598. *
  8599. * @return array
  8600. * @static
  8601. */
  8602. public static function all(){
  8603. //Method inherited from \Illuminate\Http\Request
  8604. return \Illuminate\Http\Request::all();
  8605. }
  8606. /**
  8607. * Retrieve an input item from the request.
  8608. *
  8609. * @param string $key
  8610. * @param mixed $default
  8611. * @return string
  8612. * @static
  8613. */
  8614. public static function input($key = null, $default = null){
  8615. //Method inherited from \Illuminate\Http\Request
  8616. return \Illuminate\Http\Request::input($key, $default);
  8617. }
  8618. /**
  8619. * Get a subset of the items from the input data.
  8620. *
  8621. * @param array $keys
  8622. * @return array
  8623. * @static
  8624. */
  8625. public static function only($keys){
  8626. //Method inherited from \Illuminate\Http\Request
  8627. return \Illuminate\Http\Request::only($keys);
  8628. }
  8629. /**
  8630. * Get all of the input except for a specified array of items.
  8631. *
  8632. * @param array $keys
  8633. * @return array
  8634. * @static
  8635. */
  8636. public static function except($keys){
  8637. //Method inherited from \Illuminate\Http\Request
  8638. return \Illuminate\Http\Request::except($keys);
  8639. }
  8640. /**
  8641. * Retrieve a query string item from the request.
  8642. *
  8643. * @param string $key
  8644. * @param mixed $default
  8645. * @return string
  8646. * @static
  8647. */
  8648. public static function query($key = null, $default = null){
  8649. //Method inherited from \Illuminate\Http\Request
  8650. return \Illuminate\Http\Request::query($key, $default);
  8651. }
  8652. /**
  8653. * Determine if a cookie is set on the request.
  8654. *
  8655. * @param string $key
  8656. * @return bool
  8657. * @static
  8658. */
  8659. public static function hasCookie($key){
  8660. //Method inherited from \Illuminate\Http\Request
  8661. return \Illuminate\Http\Request::hasCookie($key);
  8662. }
  8663. /**
  8664. * Retrieve a cookie from the request.
  8665. *
  8666. * @param string $key
  8667. * @param mixed $default
  8668. * @return string
  8669. * @static
  8670. */
  8671. public static function cookie($key = null, $default = null){
  8672. //Method inherited from \Illuminate\Http\Request
  8673. return \Illuminate\Http\Request::cookie($key, $default);
  8674. }
  8675. /**
  8676. * Retrieve a file from the request.
  8677. *
  8678. * @param string $key
  8679. * @param mixed $default
  8680. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  8681. * @static
  8682. */
  8683. public static function file($key = null, $default = null){
  8684. //Method inherited from \Illuminate\Http\Request
  8685. return \Illuminate\Http\Request::file($key, $default);
  8686. }
  8687. /**
  8688. * Determine if the uploaded data contains a file.
  8689. *
  8690. * @param string $key
  8691. * @return bool
  8692. * @static
  8693. */
  8694. public static function hasFile($key){
  8695. //Method inherited from \Illuminate\Http\Request
  8696. return \Illuminate\Http\Request::hasFile($key);
  8697. }
  8698. /**
  8699. * Retrieve a header from the request.
  8700. *
  8701. * @param string $key
  8702. * @param mixed $default
  8703. * @return string
  8704. * @static
  8705. */
  8706. public static function header($key = null, $default = null){
  8707. //Method inherited from \Illuminate\Http\Request
  8708. return \Illuminate\Http\Request::header($key, $default);
  8709. }
  8710. /**
  8711. * Retrieve a server variable from the request.
  8712. *
  8713. * @param string $key
  8714. * @param mixed $default
  8715. * @return string
  8716. * @static
  8717. */
  8718. public static function server($key = null, $default = null){
  8719. //Method inherited from \Illuminate\Http\Request
  8720. return \Illuminate\Http\Request::server($key, $default);
  8721. }
  8722. /**
  8723. * Retrieve an old input item.
  8724. *
  8725. * @param string $key
  8726. * @param mixed $default
  8727. * @return mixed
  8728. * @static
  8729. */
  8730. public static function old($key = null, $default = null){
  8731. //Method inherited from \Illuminate\Http\Request
  8732. return \Illuminate\Http\Request::old($key, $default);
  8733. }
  8734. /**
  8735. * Flash the input for the current request to the session.
  8736. *
  8737. * @param string $filter
  8738. * @param array $keys
  8739. * @return void
  8740. * @static
  8741. */
  8742. public static function flash($filter = null, $keys = array()){
  8743. //Method inherited from \Illuminate\Http\Request
  8744. \Illuminate\Http\Request::flash($filter, $keys);
  8745. }
  8746. /**
  8747. * Flash only some of the input to the session.
  8748. *
  8749. * @param dynamic string
  8750. * @return void
  8751. * @static
  8752. */
  8753. public static function flashOnly($keys){
  8754. //Method inherited from \Illuminate\Http\Request
  8755. \Illuminate\Http\Request::flashOnly($keys);
  8756. }
  8757. /**
  8758. * Flash only some of the input to the session.
  8759. *
  8760. * @param dynamic string
  8761. * @return void
  8762. * @static
  8763. */
  8764. public static function flashExcept($keys){
  8765. //Method inherited from \Illuminate\Http\Request
  8766. \Illuminate\Http\Request::flashExcept($keys);
  8767. }
  8768. /**
  8769. * Flush all of the old input from the session.
  8770. *
  8771. * @return void
  8772. * @static
  8773. */
  8774. public static function flush(){
  8775. //Method inherited from \Illuminate\Http\Request
  8776. \Illuminate\Http\Request::flush();
  8777. }
  8778. /**
  8779. * Merge new input into the current request's input array.
  8780. *
  8781. * @param array $input
  8782. * @return void
  8783. * @static
  8784. */
  8785. public static function merge($input){
  8786. //Method inherited from \Illuminate\Http\Request
  8787. \Illuminate\Http\Request::merge($input);
  8788. }
  8789. /**
  8790. * Replace the input for the current request.
  8791. *
  8792. * @param array $input
  8793. * @return void
  8794. * @static
  8795. */
  8796. public static function replace($input){
  8797. //Method inherited from \Illuminate\Http\Request
  8798. \Illuminate\Http\Request::replace($input);
  8799. }
  8800. /**
  8801. * Get the JSON payload for the request.
  8802. *
  8803. * @param string $key
  8804. * @param mixed $default
  8805. * @return mixed
  8806. * @static
  8807. */
  8808. public static function json($key = null, $default = null){
  8809. //Method inherited from \Illuminate\Http\Request
  8810. return \Illuminate\Http\Request::json($key, $default);
  8811. }
  8812. /**
  8813. * Determine if the request is sending JSON.
  8814. *
  8815. * @return bool
  8816. * @static
  8817. */
  8818. public static function isJson(){
  8819. //Method inherited from \Illuminate\Http\Request
  8820. return \Illuminate\Http\Request::isJson();
  8821. }
  8822. /**
  8823. * Determine if the current request is asking for JSON in return.
  8824. *
  8825. * @return bool
  8826. * @static
  8827. */
  8828. public static function wantsJson(){
  8829. //Method inherited from \Illuminate\Http\Request
  8830. return \Illuminate\Http\Request::wantsJson();
  8831. }
  8832. /**
  8833. * Get the data format expected in the response.
  8834. *
  8835. * @return string
  8836. * @static
  8837. */
  8838. public static function format($default = 'html'){
  8839. //Method inherited from \Illuminate\Http\Request
  8840. return \Illuminate\Http\Request::format($default);
  8841. }
  8842. /**
  8843. * Create an Illuminate request from a Symfony instance.
  8844. *
  8845. * @param \Symfony\Component\HttpFoundation\Request $request
  8846. * @return \Illuminate\Http\Request
  8847. * @static
  8848. */
  8849. public static function createFromBase($request){
  8850. //Method inherited from \Illuminate\Http\Request
  8851. return \Illuminate\Http\Request::createFromBase($request);
  8852. }
  8853. /**
  8854. * Get the session associated with the request.
  8855. *
  8856. * @return \Illuminate\Session\Store
  8857. * @throws \RuntimeException
  8858. * @static
  8859. */
  8860. public static function session(){
  8861. //Method inherited from \Illuminate\Http\Request
  8862. return \Illuminate\Http\Request::session();
  8863. }
  8864. /**
  8865. * Constructor.
  8866. *
  8867. * @param array $query The GET parameters
  8868. * @param array $request The POST parameters
  8869. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8870. * @param array $cookies The COOKIE parameters
  8871. * @param array $files The FILES parameters
  8872. * @param array $server The SERVER parameters
  8873. * @param string $content The raw body data
  8874. * @api
  8875. * @static
  8876. */
  8877. public static function __construct($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  8878. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8879. \Illuminate\Http\Request::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
  8880. }
  8881. /**
  8882. * Sets the parameters for this request.
  8883. *
  8884. * This method also re-initializes all properties.
  8885. *
  8886. * @param array $query The GET parameters
  8887. * @param array $request The POST parameters
  8888. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8889. * @param array $cookies The COOKIE parameters
  8890. * @param array $files The FILES parameters
  8891. * @param array $server The SERVER parameters
  8892. * @param string $content The raw body data
  8893. * @api
  8894. * @static
  8895. */
  8896. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  8897. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8898. \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8899. }
  8900. /**
  8901. * Creates a new request with values from PHP's super globals.
  8902. *
  8903. * @return Request A new request
  8904. * @api
  8905. * @static
  8906. */
  8907. public static function createFromGlobals(){
  8908. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8909. return \Illuminate\Http\Request::createFromGlobals();
  8910. }
  8911. /**
  8912. * Creates a Request based on a given URI and configuration.
  8913. *
  8914. * The information contained in the URI always take precedence
  8915. * over the other information (server and parameters).
  8916. *
  8917. * @param string $uri The URI
  8918. * @param string $method The HTTP method
  8919. * @param array $parameters The query (GET) or request (POST) parameters
  8920. * @param array $cookies The request cookies ($_COOKIE)
  8921. * @param array $files The request files ($_FILES)
  8922. * @param array $server The server parameters ($_SERVER)
  8923. * @param string $content The raw body data
  8924. * @return Request A Request instance
  8925. * @api
  8926. * @static
  8927. */
  8928. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  8929. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8930. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8931. }
  8932. /**
  8933. * Sets a callable able to create a Request instance.
  8934. *
  8935. * This is mainly useful when you need to override the Request class
  8936. * to keep BC with an existing system. It should not be used for any
  8937. * other purpose.
  8938. *
  8939. * @param callable|null $callable A PHP callable
  8940. * @static
  8941. */
  8942. public static function setFactory($callable){
  8943. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8944. \Illuminate\Http\Request::setFactory($callable);
  8945. }
  8946. /**
  8947. * Clones a request and overrides some of its parameters.
  8948. *
  8949. * @param array $query The GET parameters
  8950. * @param array $request The POST parameters
  8951. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8952. * @param array $cookies The COOKIE parameters
  8953. * @param array $files The FILES parameters
  8954. * @param array $server The SERVER parameters
  8955. * @return Request The duplicated request
  8956. * @api
  8957. * @static
  8958. */
  8959. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  8960. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8961. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  8962. }
  8963. /**
  8964. * Returns the request as a string.
  8965. *
  8966. * @return string The request
  8967. * @static
  8968. */
  8969. public static function __toString(){
  8970. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8971. return \Illuminate\Http\Request::__toString();
  8972. }
  8973. /**
  8974. * Overrides the PHP global variables according to this request instance.
  8975. *
  8976. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8977. * $_FILES is never override, see rfc1867
  8978. *
  8979. * @api
  8980. * @static
  8981. */
  8982. public static function overrideGlobals(){
  8983. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8984. \Illuminate\Http\Request::overrideGlobals();
  8985. }
  8986. /**
  8987. * Sets a list of trusted proxies.
  8988. *
  8989. * You should only list the reverse proxies that you manage directly.
  8990. *
  8991. * @param array $proxies A list of trusted proxies
  8992. * @api
  8993. * @static
  8994. */
  8995. public static function setTrustedProxies($proxies){
  8996. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8997. \Illuminate\Http\Request::setTrustedProxies($proxies);
  8998. }
  8999. /**
  9000. * Gets the list of trusted proxies.
  9001. *
  9002. * @return array An array of trusted proxies.
  9003. * @static
  9004. */
  9005. public static function getTrustedProxies(){
  9006. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9007. return \Illuminate\Http\Request::getTrustedProxies();
  9008. }
  9009. /**
  9010. * Sets a list of trusted host patterns.
  9011. *
  9012. * You should only list the hosts you manage using regexs.
  9013. *
  9014. * @param array $hostPatterns A list of trusted host patterns
  9015. * @static
  9016. */
  9017. public static function setTrustedHosts($hostPatterns){
  9018. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9019. \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  9020. }
  9021. /**
  9022. * Gets the list of trusted host patterns.
  9023. *
  9024. * @return array An array of trusted host patterns.
  9025. * @static
  9026. */
  9027. public static function getTrustedHosts(){
  9028. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9029. return \Illuminate\Http\Request::getTrustedHosts();
  9030. }
  9031. /**
  9032. * Sets the name for trusted headers.
  9033. *
  9034. * The following header keys are supported:
  9035. *
  9036. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  9037. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
  9038. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
  9039. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  9040. *
  9041. * Setting an empty value allows to disable the trusted header for the given key.
  9042. *
  9043. * @param string $key The header key
  9044. * @param string $value The header name
  9045. * @throws \InvalidArgumentException
  9046. * @static
  9047. */
  9048. public static function setTrustedHeaderName($key, $value){
  9049. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9050. \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  9051. }
  9052. /**
  9053. * Gets the trusted proxy header name.
  9054. *
  9055. * @param string $key The header key
  9056. * @return string The header name
  9057. * @throws \InvalidArgumentException
  9058. * @static
  9059. */
  9060. public static function getTrustedHeaderName($key){
  9061. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9062. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  9063. }
  9064. /**
  9065. * Normalizes a query string.
  9066. *
  9067. * It builds a normalized query string, where keys/value pairs are alphabetized,
  9068. * have consistent escaping and unneeded delimiters are removed.
  9069. *
  9070. * @param string $qs Query string
  9071. * @return string A normalized query string for the Request
  9072. * @static
  9073. */
  9074. public static function normalizeQueryString($qs){
  9075. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9076. return \Illuminate\Http\Request::normalizeQueryString($qs);
  9077. }
  9078. /**
  9079. * Enables support for the _method request parameter to determine the intended HTTP method.
  9080. *
  9081. * Be warned that enabling this feature might lead to CSRF issues in your code.
  9082. * Check that you are using CSRF tokens when required.
  9083. *
  9084. * The HTTP method can only be overridden when the real HTTP method is POST.
  9085. *
  9086. * @static
  9087. */
  9088. public static function enableHttpMethodParameterOverride(){
  9089. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9090. \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  9091. }
  9092. /**
  9093. * Checks whether support for the _method request parameter is enabled.
  9094. *
  9095. * @return bool True when the _method request parameter is enabled, false otherwise
  9096. * @static
  9097. */
  9098. public static function getHttpMethodParameterOverride(){
  9099. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9100. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  9101. }
  9102. /**
  9103. * Gets a "parameter" value.
  9104. *
  9105. * This method is mainly useful for libraries that want to provide some flexibility.
  9106. *
  9107. * Order of precedence: GET, PATH, POST
  9108. *
  9109. * Avoid using this method in controllers:
  9110. *
  9111. * * slow
  9112. * * prefer to get from a "named" source
  9113. *
  9114. * It is better to explicitly get request parameters from the appropriate
  9115. * public property instead (query, attributes, request).
  9116. *
  9117. * @param string $key the key
  9118. * @param mixed $default the default value
  9119. * @param bool $deep is parameter deep in multidimensional array
  9120. * @return mixed
  9121. * @static
  9122. */
  9123. public static function get($key, $default = null, $deep = false){
  9124. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9125. return \Illuminate\Http\Request::get($key, $default, $deep);
  9126. }
  9127. /**
  9128. * Gets the Session.
  9129. *
  9130. * @return SessionInterface|null The session
  9131. * @api
  9132. * @static
  9133. */
  9134. public static function getSession(){
  9135. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9136. return \Illuminate\Http\Request::getSession();
  9137. }
  9138. /**
  9139. * Whether the request contains a Session which was started in one of the
  9140. * previous requests.
  9141. *
  9142. * @return bool
  9143. * @api
  9144. * @static
  9145. */
  9146. public static function hasPreviousSession(){
  9147. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9148. return \Illuminate\Http\Request::hasPreviousSession();
  9149. }
  9150. /**
  9151. * Whether the request contains a Session object.
  9152. *
  9153. * This method does not give any information about the state of the session object,
  9154. * like whether the session is started or not. It is just a way to check if this Request
  9155. * is associated with a Session instance.
  9156. *
  9157. * @return bool true when the Request contains a Session object, false otherwise
  9158. * @api
  9159. * @static
  9160. */
  9161. public static function hasSession(){
  9162. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9163. return \Illuminate\Http\Request::hasSession();
  9164. }
  9165. /**
  9166. * Sets the Session.
  9167. *
  9168. * @param SessionInterface $session The Session
  9169. * @api
  9170. * @static
  9171. */
  9172. public static function setSession($session){
  9173. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9174. \Illuminate\Http\Request::setSession($session);
  9175. }
  9176. /**
  9177. * Returns the client IP addresses.
  9178. *
  9179. * In the returned array the most trusted IP address is first, and the
  9180. * least trusted one last. The "real" client IP address is the last one,
  9181. * but this is also the least trusted one. Trusted proxies are stripped.
  9182. *
  9183. * Use this method carefully; you should use getClientIp() instead.
  9184. *
  9185. * @return array The client IP addresses
  9186. * @see getClientIp()
  9187. * @static
  9188. */
  9189. public static function getClientIps(){
  9190. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9191. return \Illuminate\Http\Request::getClientIps();
  9192. }
  9193. /**
  9194. * Returns the client IP address.
  9195. *
  9196. * This method can read the client IP address from the "X-Forwarded-For" header
  9197. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  9198. * header value is a comma+space separated list of IP addresses, the left-most
  9199. * being the original client, and each successive proxy that passed the request
  9200. * adding the IP address where it received the request from.
  9201. *
  9202. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  9203. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  9204. * the "client-ip" key.
  9205. *
  9206. * @return string The client IP address
  9207. * @see getClientIps()
  9208. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  9209. * @api
  9210. * @static
  9211. */
  9212. public static function getClientIp(){
  9213. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9214. return \Illuminate\Http\Request::getClientIp();
  9215. }
  9216. /**
  9217. * Returns current script name.
  9218. *
  9219. * @return string
  9220. * @api
  9221. * @static
  9222. */
  9223. public static function getScriptName(){
  9224. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9225. return \Illuminate\Http\Request::getScriptName();
  9226. }
  9227. /**
  9228. * Returns the path being requested relative to the executed script.
  9229. *
  9230. * The path info always starts with a /.
  9231. *
  9232. * Suppose this request is instantiated from /mysite on localhost:
  9233. *
  9234. * * http://localhost/mysite returns an empty string
  9235. * * http://localhost/mysite/about returns '/about'
  9236. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  9237. * * http://localhost/mysite/about?var=1 returns '/about'
  9238. *
  9239. * @return string The raw path (i.e. not urldecoded)
  9240. * @api
  9241. * @static
  9242. */
  9243. public static function getPathInfo(){
  9244. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9245. return \Illuminate\Http\Request::getPathInfo();
  9246. }
  9247. /**
  9248. * Returns the root path from which this request is executed.
  9249. *
  9250. * Suppose that an index.php file instantiates this request object:
  9251. *
  9252. * * http://localhost/index.php returns an empty string
  9253. * * http://localhost/index.php/page returns an empty string
  9254. * * http://localhost/web/index.php returns '/web'
  9255. * * http://localhost/we%20b/index.php returns '/we%20b'
  9256. *
  9257. * @return string The raw path (i.e. not urldecoded)
  9258. * @api
  9259. * @static
  9260. */
  9261. public static function getBasePath(){
  9262. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9263. return \Illuminate\Http\Request::getBasePath();
  9264. }
  9265. /**
  9266. * Returns the root URL from which this request is executed.
  9267. *
  9268. * The base URL never ends with a /.
  9269. *
  9270. * This is similar to getBasePath(), except that it also includes the
  9271. * script filename (e.g. index.php) if one exists.
  9272. *
  9273. * @return string The raw URL (i.e. not urldecoded)
  9274. * @api
  9275. * @static
  9276. */
  9277. public static function getBaseUrl(){
  9278. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9279. return \Illuminate\Http\Request::getBaseUrl();
  9280. }
  9281. /**
  9282. * Gets the request's scheme.
  9283. *
  9284. * @return string
  9285. * @api
  9286. * @static
  9287. */
  9288. public static function getScheme(){
  9289. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9290. return \Illuminate\Http\Request::getScheme();
  9291. }
  9292. /**
  9293. * Returns the port on which the request is made.
  9294. *
  9295. * This method can read the client port from the "X-Forwarded-Port" header
  9296. * when trusted proxies were set via "setTrustedProxies()".
  9297. *
  9298. * The "X-Forwarded-Port" header must contain the client port.
  9299. *
  9300. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  9301. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  9302. *
  9303. * @return string
  9304. * @api
  9305. * @static
  9306. */
  9307. public static function getPort(){
  9308. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9309. return \Illuminate\Http\Request::getPort();
  9310. }
  9311. /**
  9312. * Returns the user.
  9313. *
  9314. * @return string|null
  9315. * @static
  9316. */
  9317. public static function getUser(){
  9318. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9319. return \Illuminate\Http\Request::getUser();
  9320. }
  9321. /**
  9322. * Returns the password.
  9323. *
  9324. * @return string|null
  9325. * @static
  9326. */
  9327. public static function getPassword(){
  9328. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9329. return \Illuminate\Http\Request::getPassword();
  9330. }
  9331. /**
  9332. * Gets the user info.
  9333. *
  9334. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  9335. * @static
  9336. */
  9337. public static function getUserInfo(){
  9338. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9339. return \Illuminate\Http\Request::getUserInfo();
  9340. }
  9341. /**
  9342. * Returns the HTTP host being requested.
  9343. *
  9344. * The port name will be appended to the host if it's non-standard.
  9345. *
  9346. * @return string
  9347. * @api
  9348. * @static
  9349. */
  9350. public static function getHttpHost(){
  9351. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9352. return \Illuminate\Http\Request::getHttpHost();
  9353. }
  9354. /**
  9355. * Returns the requested URI.
  9356. *
  9357. * @return string The raw URI (i.e. not urldecoded)
  9358. * @api
  9359. * @static
  9360. */
  9361. public static function getRequestUri(){
  9362. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9363. return \Illuminate\Http\Request::getRequestUri();
  9364. }
  9365. /**
  9366. * Gets the scheme and HTTP host.
  9367. *
  9368. * If the URL was called with basic authentication, the user
  9369. * and the password are not added to the generated string.
  9370. *
  9371. * @return string The scheme and HTTP host
  9372. * @static
  9373. */
  9374. public static function getSchemeAndHttpHost(){
  9375. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9376. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  9377. }
  9378. /**
  9379. * Generates a normalized URI for the Request.
  9380. *
  9381. * @return string A normalized URI for the Request
  9382. * @see getQueryString()
  9383. * @api
  9384. * @static
  9385. */
  9386. public static function getUri(){
  9387. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9388. return \Illuminate\Http\Request::getUri();
  9389. }
  9390. /**
  9391. * Generates a normalized URI for the given path.
  9392. *
  9393. * @param string $path A path to use instead of the current one
  9394. * @return string The normalized URI for the path
  9395. * @api
  9396. * @static
  9397. */
  9398. public static function getUriForPath($path){
  9399. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9400. return \Illuminate\Http\Request::getUriForPath($path);
  9401. }
  9402. /**
  9403. * Generates the normalized query string for the Request.
  9404. *
  9405. * It builds a normalized query string, where keys/value pairs are alphabetized
  9406. * and have consistent escaping.
  9407. *
  9408. * @return string|null A normalized query string for the Request
  9409. * @api
  9410. * @static
  9411. */
  9412. public static function getQueryString(){
  9413. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9414. return \Illuminate\Http\Request::getQueryString();
  9415. }
  9416. /**
  9417. * Checks whether the request is secure or not.
  9418. *
  9419. * This method can read the client port from the "X-Forwarded-Proto" header
  9420. * when trusted proxies were set via "setTrustedProxies()".
  9421. *
  9422. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  9423. *
  9424. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  9425. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  9426. * the "client-proto" key.
  9427. *
  9428. * @return bool
  9429. * @api
  9430. * @static
  9431. */
  9432. public static function isSecure(){
  9433. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9434. return \Illuminate\Http\Request::isSecure();
  9435. }
  9436. /**
  9437. * Returns the host name.
  9438. *
  9439. * This method can read the client port from the "X-Forwarded-Host" header
  9440. * when trusted proxies were set via "setTrustedProxies()".
  9441. *
  9442. * The "X-Forwarded-Host" header must contain the client host name.
  9443. *
  9444. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  9445. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  9446. *
  9447. * @return string
  9448. * @throws \UnexpectedValueException when the host name is invalid
  9449. * @api
  9450. * @static
  9451. */
  9452. public static function getHost(){
  9453. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9454. return \Illuminate\Http\Request::getHost();
  9455. }
  9456. /**
  9457. * Sets the request method.
  9458. *
  9459. * @param string $method
  9460. * @api
  9461. * @static
  9462. */
  9463. public static function setMethod($method){
  9464. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9465. \Illuminate\Http\Request::setMethod($method);
  9466. }
  9467. /**
  9468. * Gets the request "intended" method.
  9469. *
  9470. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  9471. * then it is used to determine the "real" intended HTTP method.
  9472. *
  9473. * The _method request parameter can also be used to determine the HTTP method,
  9474. * but only if enableHttpMethodParameterOverride() has been called.
  9475. *
  9476. * The method is always an uppercased string.
  9477. *
  9478. * @return string The request method
  9479. * @api
  9480. * @see getRealMethod
  9481. * @static
  9482. */
  9483. public static function getMethod(){
  9484. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9485. return \Illuminate\Http\Request::getMethod();
  9486. }
  9487. /**
  9488. * Gets the "real" request method.
  9489. *
  9490. * @return string The request method
  9491. * @see getMethod
  9492. * @static
  9493. */
  9494. public static function getRealMethod(){
  9495. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9496. return \Illuminate\Http\Request::getRealMethod();
  9497. }
  9498. /**
  9499. * Gets the mime type associated with the format.
  9500. *
  9501. * @param string $format The format
  9502. * @return string The associated mime type (null if not found)
  9503. * @api
  9504. * @static
  9505. */
  9506. public static function getMimeType($format){
  9507. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9508. return \Illuminate\Http\Request::getMimeType($format);
  9509. }
  9510. /**
  9511. * Gets the format associated with the mime type.
  9512. *
  9513. * @param string $mimeType The associated mime type
  9514. * @return string|null The format (null if not found)
  9515. * @api
  9516. * @static
  9517. */
  9518. public static function getFormat($mimeType){
  9519. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9520. return \Illuminate\Http\Request::getFormat($mimeType);
  9521. }
  9522. /**
  9523. * Associates a format with mime types.
  9524. *
  9525. * @param string $format The format
  9526. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  9527. * @api
  9528. * @static
  9529. */
  9530. public static function setFormat($format, $mimeTypes){
  9531. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9532. \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  9533. }
  9534. /**
  9535. * Gets the request format.
  9536. *
  9537. * Here is the process to determine the format:
  9538. *
  9539. * * format defined by the user (with setRequestFormat())
  9540. * * _format request parameter
  9541. * * $default
  9542. *
  9543. * @param string $default The default format
  9544. * @return string The request format
  9545. * @api
  9546. * @static
  9547. */
  9548. public static function getRequestFormat($default = 'html'){
  9549. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9550. return \Illuminate\Http\Request::getRequestFormat($default);
  9551. }
  9552. /**
  9553. * Sets the request format.
  9554. *
  9555. * @param string $format The request format.
  9556. * @api
  9557. * @static
  9558. */
  9559. public static function setRequestFormat($format){
  9560. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9561. \Illuminate\Http\Request::setRequestFormat($format);
  9562. }
  9563. /**
  9564. * Gets the format associated with the request.
  9565. *
  9566. * @return string|null The format (null if no content type is present)
  9567. * @api
  9568. * @static
  9569. */
  9570. public static function getContentType(){
  9571. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9572. return \Illuminate\Http\Request::getContentType();
  9573. }
  9574. /**
  9575. * Sets the default locale.
  9576. *
  9577. * @param string $locale
  9578. * @api
  9579. * @static
  9580. */
  9581. public static function setDefaultLocale($locale){
  9582. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9583. \Illuminate\Http\Request::setDefaultLocale($locale);
  9584. }
  9585. /**
  9586. * Sets the locale.
  9587. *
  9588. * @param string $locale
  9589. * @api
  9590. * @static
  9591. */
  9592. public static function setLocale($locale){
  9593. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9594. \Illuminate\Http\Request::setLocale($locale);
  9595. }
  9596. /**
  9597. * Get the locale.
  9598. *
  9599. * @return string
  9600. * @static
  9601. */
  9602. public static function getLocale(){
  9603. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9604. return \Illuminate\Http\Request::getLocale();
  9605. }
  9606. /**
  9607. * Checks if the request method is of specified type.
  9608. *
  9609. * @param string $method Uppercase request method (GET, POST etc).
  9610. * @return bool
  9611. * @static
  9612. */
  9613. public static function isMethod($method){
  9614. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9615. return \Illuminate\Http\Request::isMethod($method);
  9616. }
  9617. /**
  9618. * Checks whether the method is safe or not.
  9619. *
  9620. * @return bool
  9621. * @api
  9622. * @static
  9623. */
  9624. public static function isMethodSafe(){
  9625. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9626. return \Illuminate\Http\Request::isMethodSafe();
  9627. }
  9628. /**
  9629. * Returns the request body content.
  9630. *
  9631. * @param bool $asResource If true, a resource will be returned
  9632. * @return string|resource The request body content or a resource to read the body stream.
  9633. * @throws \LogicException
  9634. * @static
  9635. */
  9636. public static function getContent($asResource = false){
  9637. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9638. return \Illuminate\Http\Request::getContent($asResource);
  9639. }
  9640. /**
  9641. * Gets the Etags.
  9642. *
  9643. * @return array The entity tags
  9644. * @static
  9645. */
  9646. public static function getETags(){
  9647. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9648. return \Illuminate\Http\Request::getETags();
  9649. }
  9650. /**
  9651. *
  9652. *
  9653. * @return bool
  9654. * @static
  9655. */
  9656. public static function isNoCache(){
  9657. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9658. return \Illuminate\Http\Request::isNoCache();
  9659. }
  9660. /**
  9661. * Returns the preferred language.
  9662. *
  9663. * @param array $locales An array of ordered available locales
  9664. * @return string|null The preferred locale
  9665. * @api
  9666. * @static
  9667. */
  9668. public static function getPreferredLanguage($locales = null){
  9669. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9670. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  9671. }
  9672. /**
  9673. * Gets a list of languages acceptable by the client browser.
  9674. *
  9675. * @return array Languages ordered in the user browser preferences
  9676. * @api
  9677. * @static
  9678. */
  9679. public static function getLanguages(){
  9680. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9681. return \Illuminate\Http\Request::getLanguages();
  9682. }
  9683. /**
  9684. * Gets a list of charsets acceptable by the client browser.
  9685. *
  9686. * @return array List of charsets in preferable order
  9687. * @api
  9688. * @static
  9689. */
  9690. public static function getCharsets(){
  9691. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9692. return \Illuminate\Http\Request::getCharsets();
  9693. }
  9694. /**
  9695. * Gets a list of encodings acceptable by the client browser.
  9696. *
  9697. * @return array List of encodings in preferable order
  9698. * @static
  9699. */
  9700. public static function getEncodings(){
  9701. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9702. return \Illuminate\Http\Request::getEncodings();
  9703. }
  9704. /**
  9705. * Gets a list of content types acceptable by the client browser
  9706. *
  9707. * @return array List of content types in preferable order
  9708. * @api
  9709. * @static
  9710. */
  9711. public static function getAcceptableContentTypes(){
  9712. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9713. return \Illuminate\Http\Request::getAcceptableContentTypes();
  9714. }
  9715. /**
  9716. * Returns true if the request is a XMLHttpRequest.
  9717. *
  9718. * It works if your JavaScript library set an X-Requested-With HTTP header.
  9719. * It is known to work with common JavaScript frameworks:
  9720. *
  9721. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9722. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9723. * @api
  9724. * @static
  9725. */
  9726. public static function isXmlHttpRequest(){
  9727. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9728. return \Illuminate\Http\Request::isXmlHttpRequest();
  9729. }
  9730. }
  9731. class Response extends \Illuminate\Support\Facades\Response{
  9732. }
  9733. class Route extends \Illuminate\Support\Facades\Route{
  9734. /**
  9735. * Create a new Router instance.
  9736. *
  9737. * @param \Illuminate\Events\Dispatcher $events
  9738. * @param \Illuminate\Container\Container $container
  9739. * @return void
  9740. * @static
  9741. */
  9742. public static function __construct($events, $container = null){
  9743. //Method inherited from \Illuminate\Routing\Router
  9744. \Illuminate\Routing\Router::__construct($events, $container);
  9745. }
  9746. /**
  9747. * Register a new GET route with the router.
  9748. *
  9749. * @param string $uri
  9750. * @param \Closure|array|string $action
  9751. * @return \Illuminate\Routing\Route
  9752. * @static
  9753. */
  9754. public static function get($uri, $action){
  9755. //Method inherited from \Illuminate\Routing\Router
  9756. return \Illuminate\Routing\Router::get($uri, $action);
  9757. }
  9758. /**
  9759. * Register a new POST route with the router.
  9760. *
  9761. * @param string $uri
  9762. * @param \Closure|array|string $action
  9763. * @return \Illuminate\Routing\Route
  9764. * @static
  9765. */
  9766. public static function post($uri, $action){
  9767. //Method inherited from \Illuminate\Routing\Router
  9768. return \Illuminate\Routing\Router::post($uri, $action);
  9769. }
  9770. /**
  9771. * Register a new PUT route with the router.
  9772. *
  9773. * @param string $uri
  9774. * @param \Closure|array|string $action
  9775. * @return \Illuminate\Routing\Route
  9776. * @static
  9777. */
  9778. public static function put($uri, $action){
  9779. //Method inherited from \Illuminate\Routing\Router
  9780. return \Illuminate\Routing\Router::put($uri, $action);
  9781. }
  9782. /**
  9783. * Register a new PATCH route with the router.
  9784. *
  9785. * @param string $uri
  9786. * @param \Closure|array|string $action
  9787. * @return \Illuminate\Routing\Route
  9788. * @static
  9789. */
  9790. public static function patch($uri, $action){
  9791. //Method inherited from \Illuminate\Routing\Router
  9792. return \Illuminate\Routing\Router::patch($uri, $action);
  9793. }
  9794. /**
  9795. * Register a new DELETE route with the router.
  9796. *
  9797. * @param string $uri
  9798. * @param \Closure|array|string $action
  9799. * @return \Illuminate\Routing\Route
  9800. * @static
  9801. */
  9802. public static function delete($uri, $action){
  9803. //Method inherited from \Illuminate\Routing\Router
  9804. return \Illuminate\Routing\Router::delete($uri, $action);
  9805. }
  9806. /**
  9807. * Register a new OPTIONS route with the router.
  9808. *
  9809. * @param string $uri
  9810. * @param \Closure|array|string $action
  9811. * @return \Illuminate\Routing\Route
  9812. * @static
  9813. */
  9814. public static function options($uri, $action){
  9815. //Method inherited from \Illuminate\Routing\Router
  9816. return \Illuminate\Routing\Router::options($uri, $action);
  9817. }
  9818. /**
  9819. * Register a new route responding to all verbs.
  9820. *
  9821. * @param string $uri
  9822. * @param \Closure|array|string $action
  9823. * @return \Illuminate\Routing\Route
  9824. * @static
  9825. */
  9826. public static function any($uri, $action){
  9827. //Method inherited from \Illuminate\Routing\Router
  9828. return \Illuminate\Routing\Router::any($uri, $action);
  9829. }
  9830. /**
  9831. * Register a new route with the given verbs.
  9832. *
  9833. * @param array|string $methods
  9834. * @param string $uri
  9835. * @param \Closure|array|string $action
  9836. * @return \Illuminate\Routing\Route
  9837. * @static
  9838. */
  9839. public static function match($methods, $uri, $action){
  9840. //Method inherited from \Illuminate\Routing\Router
  9841. return \Illuminate\Routing\Router::match($methods, $uri, $action);
  9842. }
  9843. /**
  9844. * Register an array of controllers with wildcard routing.
  9845. *
  9846. * @param array $controllers
  9847. * @return void
  9848. * @static
  9849. */
  9850. public static function controllers($controllers){
  9851. //Method inherited from \Illuminate\Routing\Router
  9852. \Illuminate\Routing\Router::controllers($controllers);
  9853. }
  9854. /**
  9855. * Route a controller to a URI with wildcard routing.
  9856. *
  9857. * @param string $uri
  9858. * @param string $controller
  9859. * @param array $names
  9860. * @return void
  9861. * @static
  9862. */
  9863. public static function controller($uri, $controller, $names = array()){
  9864. //Method inherited from \Illuminate\Routing\Router
  9865. \Illuminate\Routing\Router::controller($uri, $controller, $names);
  9866. }
  9867. /**
  9868. * Route a resource to a controller.
  9869. *
  9870. * @param string $name
  9871. * @param string $controller
  9872. * @param array $options
  9873. * @return void
  9874. * @static
  9875. */
  9876. public static function resource($name, $controller, $options = array()){
  9877. //Method inherited from \Illuminate\Routing\Router
  9878. \Illuminate\Routing\Router::resource($name, $controller, $options);
  9879. }
  9880. /**
  9881. * Get the base resource URI for a given resource.
  9882. *
  9883. * @param string $resource
  9884. * @return string
  9885. * @static
  9886. */
  9887. public static function getResourceUri($resource){
  9888. //Method inherited from \Illuminate\Routing\Router
  9889. return \Illuminate\Routing\Router::getResourceUri($resource);
  9890. }
  9891. /**
  9892. * Format a resource wildcard for usage.
  9893. *
  9894. * @param string $value
  9895. * @return string
  9896. * @static
  9897. */
  9898. public static function getResourceWildcard($value){
  9899. //Method inherited from \Illuminate\Routing\Router
  9900. return \Illuminate\Routing\Router::getResourceWildcard($value);
  9901. }
  9902. /**
  9903. * Create a route group with shared attributes.
  9904. *
  9905. * @param array $attributes
  9906. * @param Closure $callback
  9907. * @return void
  9908. * @static
  9909. */
  9910. public static function group($attributes, $callback){
  9911. //Method inherited from \Illuminate\Routing\Router
  9912. \Illuminate\Routing\Router::group($attributes, $callback);
  9913. }
  9914. /**
  9915. * Merge the given array with the last group stack.
  9916. *
  9917. * @param array $new
  9918. * @return array
  9919. * @static
  9920. */
  9921. public static function mergeWithLastGroup($new){
  9922. //Method inherited from \Illuminate\Routing\Router
  9923. return \Illuminate\Routing\Router::mergeWithLastGroup($new);
  9924. }
  9925. /**
  9926. * Merge the given group attributes.
  9927. *
  9928. * @param array $new
  9929. * @param array $old
  9930. * @return array
  9931. * @static
  9932. */
  9933. public static function mergeGroup($new, $old){
  9934. //Method inherited from \Illuminate\Routing\Router
  9935. return \Illuminate\Routing\Router::mergeGroup($new, $old);
  9936. }
  9937. /**
  9938. * Dispatch the request to the application.
  9939. *
  9940. * @param \Illuminate\Http\Request $request
  9941. * @return \Illuminate\Http\Response
  9942. * @static
  9943. */
  9944. public static function dispatch($request){
  9945. //Method inherited from \Illuminate\Routing\Router
  9946. return \Illuminate\Routing\Router::dispatch($request);
  9947. }
  9948. /**
  9949. * Dispatch the request to a route and return the response.
  9950. *
  9951. * @param \Illuminate\Http\Request $request
  9952. * @return mixed
  9953. * @static
  9954. */
  9955. public static function dispatchToRoute($request){
  9956. //Method inherited from \Illuminate\Routing\Router
  9957. return \Illuminate\Routing\Router::dispatchToRoute($request);
  9958. }
  9959. /**
  9960. * Register a route matched event listener.
  9961. *
  9962. * @param callable $callback
  9963. * @return void
  9964. * @static
  9965. */
  9966. public static function matched($callback){
  9967. //Method inherited from \Illuminate\Routing\Router
  9968. \Illuminate\Routing\Router::matched($callback);
  9969. }
  9970. /**
  9971. * Register a new "before" filter with the router.
  9972. *
  9973. * @param mixed $callback
  9974. * @return void
  9975. * @static
  9976. */
  9977. public static function before($callback){
  9978. //Method inherited from \Illuminate\Routing\Router
  9979. \Illuminate\Routing\Router::before($callback);
  9980. }
  9981. /**
  9982. * Register a new "after" filter with the router.
  9983. *
  9984. * @param mixed $callback
  9985. * @return void
  9986. * @static
  9987. */
  9988. public static function after($callback){
  9989. //Method inherited from \Illuminate\Routing\Router
  9990. \Illuminate\Routing\Router::after($callback);
  9991. }
  9992. /**
  9993. * Register a new filter with the router.
  9994. *
  9995. * @param string $name
  9996. * @param mixed $callback
  9997. * @return void
  9998. * @static
  9999. */
  10000. public static function filter($name, $callback){
  10001. //Method inherited from \Illuminate\Routing\Router
  10002. \Illuminate\Routing\Router::filter($name, $callback);
  10003. }
  10004. /**
  10005. * Register a pattern-based filter with the router.
  10006. *
  10007. * @param string $pattern
  10008. * @param string $name
  10009. * @param array|null $methods
  10010. * @static
  10011. */
  10012. public static function when($pattern, $name, $methods = null){
  10013. //Method inherited from \Illuminate\Routing\Router
  10014. \Illuminate\Routing\Router::when($pattern, $name, $methods);
  10015. }
  10016. /**
  10017. * Register a regular expression based filter with the router.
  10018. *
  10019. * @param string $pattern
  10020. * @param string $name
  10021. * @param array|null $methods
  10022. * @return void
  10023. * @static
  10024. */
  10025. public static function whenRegex($pattern, $name, $methods = null){
  10026. //Method inherited from \Illuminate\Routing\Router
  10027. \Illuminate\Routing\Router::whenRegex($pattern, $name, $methods);
  10028. }
  10029. /**
  10030. * Register a model binder for a wildcard.
  10031. *
  10032. * @param string $key
  10033. * @param string $class
  10034. * @param \Closure $callback
  10035. * @return void
  10036. * @throws NotFoundHttpException
  10037. * @static
  10038. */
  10039. public static function model($key, $class, $callback = null){
  10040. //Method inherited from \Illuminate\Routing\Router
  10041. \Illuminate\Routing\Router::model($key, $class, $callback);
  10042. }
  10043. /**
  10044. * Add a new route parameter binder.
  10045. *
  10046. * @param string $key
  10047. * @param callable $binder
  10048. * @return void
  10049. * @static
  10050. */
  10051. public static function bind($key, $binder){
  10052. //Method inherited from \Illuminate\Routing\Router
  10053. \Illuminate\Routing\Router::bind($key, $binder);
  10054. }
  10055. /**
  10056. * Set a global where pattern on all routes
  10057. *
  10058. * @param string $key
  10059. * @param string $pattern
  10060. * @return void
  10061. * @static
  10062. */
  10063. public static function pattern($key, $pattern){
  10064. //Method inherited from \Illuminate\Routing\Router
  10065. \Illuminate\Routing\Router::pattern($key, $pattern);
  10066. }
  10067. /**
  10068. * Call the given route's before filters.
  10069. *
  10070. * @param \Illuminate\Routing\Route $route
  10071. * @param \Illuminate\Http\Request $request
  10072. * @return mixed
  10073. * @static
  10074. */
  10075. public static function callRouteBefore($route, $request){
  10076. //Method inherited from \Illuminate\Routing\Router
  10077. return \Illuminate\Routing\Router::callRouteBefore($route, $request);
  10078. }
  10079. /**
  10080. * Find the patterned filters matching a request.
  10081. *
  10082. * @param \Illuminate\Http\Request $request
  10083. * @return array
  10084. * @static
  10085. */
  10086. public static function findPatternFilters($request){
  10087. //Method inherited from \Illuminate\Routing\Router
  10088. return \Illuminate\Routing\Router::findPatternFilters($request);
  10089. }
  10090. /**
  10091. * Call the given route's before filters.
  10092. *
  10093. * @param \Illuminate\Routing\Route $route
  10094. * @param \Illuminate\Http\Request $request
  10095. * @param \Illuminate\Http\Response $response
  10096. * @return mixed
  10097. * @static
  10098. */
  10099. public static function callRouteAfter($route, $request, $response){
  10100. //Method inherited from \Illuminate\Routing\Router
  10101. return \Illuminate\Routing\Router::callRouteAfter($route, $request, $response);
  10102. }
  10103. /**
  10104. * Call the given route filter.
  10105. *
  10106. * @param string $filter
  10107. * @param array $parameters
  10108. * @param \Illuminate\Routing\Route $route
  10109. * @param \Illuminate\Http\Request $request
  10110. * @param \Illuminate\Http\Response|null $response
  10111. * @return mixed
  10112. * @static
  10113. */
  10114. public static function callRouteFilter($filter, $parameters, $route, $request, $response = null){
  10115. //Method inherited from \Illuminate\Routing\Router
  10116. return \Illuminate\Routing\Router::callRouteFilter($filter, $parameters, $route, $request, $response);
  10117. }
  10118. /**
  10119. * Run a callback with filters disable on the router.
  10120. *
  10121. * @param callable $callback
  10122. * @return void
  10123. * @static
  10124. */
  10125. public static function withoutFilters($callback){
  10126. //Method inherited from \Illuminate\Routing\Router
  10127. \Illuminate\Routing\Router::withoutFilters($callback);
  10128. }
  10129. /**
  10130. * Enable route filtering on the router.
  10131. *
  10132. * @return void
  10133. * @static
  10134. */
  10135. public static function enableFilters(){
  10136. //Method inherited from \Illuminate\Routing\Router
  10137. \Illuminate\Routing\Router::enableFilters();
  10138. }
  10139. /**
  10140. * Disable route filtering on the router.
  10141. *
  10142. * @return void
  10143. * @static
  10144. */
  10145. public static function disableFilters(){
  10146. //Method inherited from \Illuminate\Routing\Router
  10147. \Illuminate\Routing\Router::disableFilters();
  10148. }
  10149. /**
  10150. * Get a route parameter for the current route.
  10151. *
  10152. * @param string $key
  10153. * @param string $default
  10154. * @return mixed
  10155. * @static
  10156. */
  10157. public static function input($key, $default = null){
  10158. //Method inherited from \Illuminate\Routing\Router
  10159. return \Illuminate\Routing\Router::input($key, $default);
  10160. }
  10161. /**
  10162. * Get the currently dispatched route instance.
  10163. *
  10164. * @return \Illuminate\Routing\Route
  10165. * @static
  10166. */
  10167. public static function getCurrentRoute(){
  10168. //Method inherited from \Illuminate\Routing\Router
  10169. return \Illuminate\Routing\Router::getCurrentRoute();
  10170. }
  10171. /**
  10172. * Get the currently dispatched route instance.
  10173. *
  10174. * @return \Illuminate\Routing\Route
  10175. * @static
  10176. */
  10177. public static function current(){
  10178. //Method inherited from \Illuminate\Routing\Router
  10179. return \Illuminate\Routing\Router::current();
  10180. }
  10181. /**
  10182. * Get the current route name.
  10183. *
  10184. * @return string|null
  10185. * @static
  10186. */
  10187. public static function currentRouteName(){
  10188. //Method inherited from \Illuminate\Routing\Router
  10189. return \Illuminate\Routing\Router::currentRouteName();
  10190. }
  10191. /**
  10192. * Determine if the current route matches a given name.
  10193. *
  10194. * @param string $name
  10195. * @return bool
  10196. * @static
  10197. */
  10198. public static function currentRouteNamed($name){
  10199. //Method inherited from \Illuminate\Routing\Router
  10200. return \Illuminate\Routing\Router::currentRouteNamed($name);
  10201. }
  10202. /**
  10203. * Get the current route action.
  10204. *
  10205. * @return string|null
  10206. * @static
  10207. */
  10208. public static function currentRouteAction(){
  10209. //Method inherited from \Illuminate\Routing\Router
  10210. return \Illuminate\Routing\Router::currentRouteAction();
  10211. }
  10212. /**
  10213. * Determine if the current route action matches a given action.
  10214. *
  10215. * @param string $action
  10216. * @return bool
  10217. * @static
  10218. */
  10219. public static function currentRouteUses($action){
  10220. //Method inherited from \Illuminate\Routing\Router
  10221. return \Illuminate\Routing\Router::currentRouteUses($action);
  10222. }
  10223. /**
  10224. * Get the request currently being dispatched.
  10225. *
  10226. * @return \Illuminate\Http\Request
  10227. * @static
  10228. */
  10229. public static function getCurrentRequest(){
  10230. //Method inherited from \Illuminate\Routing\Router
  10231. return \Illuminate\Routing\Router::getCurrentRequest();
  10232. }
  10233. /**
  10234. * Get the underlying route collection.
  10235. *
  10236. * @return \Illuminate\Routing\RouteCollection
  10237. * @static
  10238. */
  10239. public static function getRoutes(){
  10240. //Method inherited from \Illuminate\Routing\Router
  10241. return \Illuminate\Routing\Router::getRoutes();
  10242. }
  10243. /**
  10244. * Get the controller dispatcher instance.
  10245. *
  10246. * @return \Illuminate\Routing\ControllerDispatcher
  10247. * @static
  10248. */
  10249. public static function getControllerDispatcher(){
  10250. //Method inherited from \Illuminate\Routing\Router
  10251. return \Illuminate\Routing\Router::getControllerDispatcher();
  10252. }
  10253. /**
  10254. * Set the controller dispatcher instance.
  10255. *
  10256. * @param \Illuminate\Routing\ControllerDispatcher $dispatcher
  10257. * @return void
  10258. * @static
  10259. */
  10260. public static function setControllerDispatcher($dispatcher){
  10261. //Method inherited from \Illuminate\Routing\Router
  10262. \Illuminate\Routing\Router::setControllerDispatcher($dispatcher);
  10263. }
  10264. /**
  10265. * Get a controller inspector instance.
  10266. *
  10267. * @return \Illuminate\Routing\ControllerInspector
  10268. * @static
  10269. */
  10270. public static function getInspector(){
  10271. //Method inherited from \Illuminate\Routing\Router
  10272. return \Illuminate\Routing\Router::getInspector();
  10273. }
  10274. /**
  10275. * Get the response for a given request.
  10276. *
  10277. * @param \Symfony\Component\HttpFoundation\Request $request
  10278. * @return \Symfony\Component\HttpFoundation\Response
  10279. * @static
  10280. */
  10281. public static function handle($request, $type = 1, $catch = true){
  10282. //Method inherited from \Illuminate\Routing\Router
  10283. return \Illuminate\Routing\Router::handle($request, $type, $catch);
  10284. }
  10285. }
  10286. class Schema extends \Illuminate\Support\Facades\Schema{
  10287. /**
  10288. * Create a new database Schema manager.
  10289. *
  10290. * @param \Illuminate\Database\Connection $connection
  10291. * @return void
  10292. * @static
  10293. */
  10294. public static function __construct($connection){
  10295. //Method inherited from \Illuminate\Database\Schema\Builder
  10296. \Illuminate\Database\Schema\Builder::__construct($connection);
  10297. }
  10298. /**
  10299. * Determine if the given table exists.
  10300. *
  10301. * @param string $table
  10302. * @return bool
  10303. * @static
  10304. */
  10305. public static function hasTable($table){
  10306. //Method inherited from \Illuminate\Database\Schema\Builder
  10307. return \Illuminate\Database\Schema\Builder::hasTable($table);
  10308. }
  10309. /**
  10310. * Determine if the given table has a given column.
  10311. *
  10312. * @param string $table
  10313. * @param string $column
  10314. * @return bool
  10315. * @static
  10316. */
  10317. public static function hasColumn($table, $column){
  10318. //Method inherited from \Illuminate\Database\Schema\Builder
  10319. return \Illuminate\Database\Schema\Builder::hasColumn($table, $column);
  10320. }
  10321. /**
  10322. * Get the column listing for a given table.
  10323. *
  10324. * @param string $table
  10325. * @return array
  10326. * @static
  10327. */
  10328. public static function getColumnListing($table){
  10329. //Method inherited from \Illuminate\Database\Schema\Builder
  10330. return \Illuminate\Database\Schema\Builder::getColumnListing($table);
  10331. }
  10332. /**
  10333. * Modify a table on the schema.
  10334. *
  10335. * @param string $table
  10336. * @param Closure $callback
  10337. * @return \Illuminate\Database\Schema\Blueprint
  10338. * @static
  10339. */
  10340. public static function table($table, $callback){
  10341. //Method inherited from \Illuminate\Database\Schema\Builder
  10342. return \Illuminate\Database\Schema\Builder::table($table, $callback);
  10343. }
  10344. /**
  10345. * Create a new table on the schema.
  10346. *
  10347. * @param string $table
  10348. * @param Closure $callback
  10349. * @return \Illuminate\Database\Schema\Blueprint
  10350. * @static
  10351. */
  10352. public static function create($table, $callback){
  10353. //Method inherited from \Illuminate\Database\Schema\Builder
  10354. return \Illuminate\Database\Schema\Builder::create($table, $callback);
  10355. }
  10356. /**
  10357. * Drop a table from the schema.
  10358. *
  10359. * @param string $table
  10360. * @return \Illuminate\Database\Schema\Blueprint
  10361. * @static
  10362. */
  10363. public static function drop($table){
  10364. //Method inherited from \Illuminate\Database\Schema\Builder
  10365. return \Illuminate\Database\Schema\Builder::drop($table);
  10366. }
  10367. /**
  10368. * Drop a table from the schema if it exists.
  10369. *
  10370. * @param string $table
  10371. * @return \Illuminate\Database\Schema\Blueprint
  10372. * @static
  10373. */
  10374. public static function dropIfExists($table){
  10375. //Method inherited from \Illuminate\Database\Schema\Builder
  10376. return \Illuminate\Database\Schema\Builder::dropIfExists($table);
  10377. }
  10378. /**
  10379. * Rename a table on the schema.
  10380. *
  10381. * @param string $from
  10382. * @param string $to
  10383. * @return \Illuminate\Database\Schema\Blueprint
  10384. * @static
  10385. */
  10386. public static function rename($from, $to){
  10387. //Method inherited from \Illuminate\Database\Schema\Builder
  10388. return \Illuminate\Database\Schema\Builder::rename($from, $to);
  10389. }
  10390. /**
  10391. * Get the database connection instance.
  10392. *
  10393. * @return \Illuminate\Database\Connection
  10394. * @static
  10395. */
  10396. public static function getConnection(){
  10397. //Method inherited from \Illuminate\Database\Schema\Builder
  10398. return \Illuminate\Database\Schema\Builder::getConnection();
  10399. }
  10400. /**
  10401. * Set the database connection instance.
  10402. *
  10403. * @param \Illuminate\Database\Connection
  10404. * @return \Illuminate\Database\Schema\Builder
  10405. * @static
  10406. */
  10407. public static function setConnection($connection){
  10408. //Method inherited from \Illuminate\Database\Schema\Builder
  10409. return \Illuminate\Database\Schema\Builder::setConnection($connection);
  10410. }
  10411. /**
  10412. * Set the Schema Blueprint resolver callback.
  10413. *
  10414. * @param \Closure $resolver
  10415. * @return void
  10416. * @static
  10417. */
  10418. public static function blueprintResolver($resolver){
  10419. //Method inherited from \Illuminate\Database\Schema\Builder
  10420. \Illuminate\Database\Schema\Builder::blueprintResolver($resolver);
  10421. }
  10422. }
  10423. class Seeder extends \Illuminate\Database\Seeder{
  10424. }
  10425. class Session extends \Illuminate\Support\Facades\Session{
  10426. /**
  10427. * Get the session configuration.
  10428. *
  10429. * @return array
  10430. * @static
  10431. */
  10432. public static function getSessionConfig(){
  10433. //Method inherited from \Illuminate\Session\SessionManager
  10434. return \Illuminate\Session\SessionManager::getSessionConfig();
  10435. }
  10436. /**
  10437. * Get the default session driver name.
  10438. *
  10439. * @return string
  10440. * @static
  10441. */
  10442. public static function getDefaultDriver(){
  10443. //Method inherited from \Illuminate\Session\SessionManager
  10444. return \Illuminate\Session\SessionManager::getDefaultDriver();
  10445. }
  10446. /**
  10447. * Set the default session driver name.
  10448. *
  10449. * @param string $name
  10450. * @return void
  10451. * @static
  10452. */
  10453. public static function setDefaultDriver($name){
  10454. //Method inherited from \Illuminate\Session\SessionManager
  10455. \Illuminate\Session\SessionManager::setDefaultDriver($name);
  10456. }
  10457. /**
  10458. * Create a new manager instance.
  10459. *
  10460. * @param \Illuminate\Foundation\Application $app
  10461. * @return void
  10462. * @static
  10463. */
  10464. public static function __construct($app){
  10465. //Method inherited from \Illuminate\Support\Manager
  10466. \Illuminate\Session\SessionManager::__construct($app);
  10467. }
  10468. /**
  10469. * Get a driver instance.
  10470. *
  10471. * @param string $driver
  10472. * @return mixed
  10473. * @static
  10474. */
  10475. public static function driver($driver = null){
  10476. //Method inherited from \Illuminate\Support\Manager
  10477. return \Illuminate\Session\SessionManager::driver($driver);
  10478. }
  10479. /**
  10480. * Register a custom driver creator Closure.
  10481. *
  10482. * @param string $driver
  10483. * @param Closure $callback
  10484. * @return \Illuminate\Support\Manager|static
  10485. * @static
  10486. */
  10487. public static function extend($driver, $callback){
  10488. //Method inherited from \Illuminate\Support\Manager
  10489. return \Illuminate\Session\SessionManager::extend($driver, $callback);
  10490. }
  10491. /**
  10492. * Get all of the created "drivers".
  10493. *
  10494. * @return array
  10495. * @static
  10496. */
  10497. public static function getDrivers(){
  10498. //Method inherited from \Illuminate\Support\Manager
  10499. return \Illuminate\Session\SessionManager::getDrivers();
  10500. }
  10501. /**
  10502. * Dynamically call the default driver instance.
  10503. *
  10504. * @param string $method
  10505. * @param array $parameters
  10506. * @return mixed
  10507. * @static
  10508. */
  10509. public static function __call($method, $parameters){
  10510. //Method inherited from \Illuminate\Support\Manager
  10511. return \Illuminate\Session\SessionManager::__call($method, $parameters);
  10512. }
  10513. /**
  10514. * Starts the session storage.
  10515. *
  10516. * @return bool True if session started.
  10517. * @throws \RuntimeException If session fails to start.
  10518. * @api
  10519. * @static
  10520. */
  10521. public static function start(){
  10522. //Method inherited from \Illuminate\Session\Store
  10523. return \Illuminate\Session\Store::start();
  10524. }
  10525. /**
  10526. * Returns the session ID.
  10527. *
  10528. * @return string The session ID.
  10529. * @api
  10530. * @static
  10531. */
  10532. public static function getId(){
  10533. //Method inherited from \Illuminate\Session\Store
  10534. return \Illuminate\Session\Store::getId();
  10535. }
  10536. /**
  10537. * Sets the session ID
  10538. *
  10539. * @param string $id
  10540. * @api
  10541. * @static
  10542. */
  10543. public static function setId($id){
  10544. //Method inherited from \Illuminate\Session\Store
  10545. \Illuminate\Session\Store::setId($id);
  10546. }
  10547. /**
  10548. * Returns the session name.
  10549. *
  10550. * @return mixed The session name.
  10551. * @api
  10552. * @static
  10553. */
  10554. public static function getName(){
  10555. //Method inherited from \Illuminate\Session\Store
  10556. return \Illuminate\Session\Store::getName();
  10557. }
  10558. /**
  10559. * Sets the session name.
  10560. *
  10561. * @param string $name
  10562. * @api
  10563. * @static
  10564. */
  10565. public static function setName($name){
  10566. //Method inherited from \Illuminate\Session\Store
  10567. \Illuminate\Session\Store::setName($name);
  10568. }
  10569. /**
  10570. * Invalidates the current session.
  10571. *
  10572. * Clears all session attributes and flashes and regenerates the
  10573. * session and deletes the old session from persistence.
  10574. *
  10575. * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  10576. * will leave the system settings unchanged, 0 sets the cookie
  10577. * to expire with browser session. Time is in seconds, and is
  10578. * not a Unix timestamp.
  10579. * @return bool True if session invalidated, false if error.
  10580. * @api
  10581. * @static
  10582. */
  10583. public static function invalidate($lifetime = null){
  10584. //Method inherited from \Illuminate\Session\Store
  10585. return \Illuminate\Session\Store::invalidate($lifetime);
  10586. }
  10587. /**
  10588. * Migrates the current session to a new session id while maintaining all
  10589. * session attributes.
  10590. *
  10591. * @param bool $destroy Whether to delete the old session or leave it to garbage collection.
  10592. * @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
  10593. * will leave the system settings unchanged, 0 sets the cookie
  10594. * to expire with browser session. Time is in seconds, and is
  10595. * not a Unix timestamp.
  10596. * @return bool True if session migrated, false if error.
  10597. * @api
  10598. * @static
  10599. */
  10600. public static function migrate($destroy = false, $lifetime = null){
  10601. //Method inherited from \Illuminate\Session\Store
  10602. return \Illuminate\Session\Store::migrate($destroy, $lifetime);
  10603. }
  10604. /**
  10605. * Generate a new session identifier.
  10606. *
  10607. * @param bool $destroy
  10608. * @return bool
  10609. * @static
  10610. */
  10611. public static function regenerate($destroy = false){
  10612. //Method inherited from \Illuminate\Session\Store
  10613. return \Illuminate\Session\Store::regenerate($destroy);
  10614. }
  10615. /**
  10616. * Force the session to be saved and closed.
  10617. *
  10618. * This method is generally not required for real sessions as
  10619. * the session will be automatically saved at the end of
  10620. * code execution.
  10621. *
  10622. * @static
  10623. */
  10624. public static function save(){
  10625. //Method inherited from \Illuminate\Session\Store
  10626. \Illuminate\Session\Store::save();
  10627. }
  10628. /**
  10629. * Age the flash data for the session.
  10630. *
  10631. * @return void
  10632. * @static
  10633. */
  10634. public static function ageFlashData(){
  10635. //Method inherited from \Illuminate\Session\Store
  10636. \Illuminate\Session\Store::ageFlashData();
  10637. }
  10638. /**
  10639. * Checks if an attribute is defined.
  10640. *
  10641. * @param string $name The attribute name
  10642. * @return bool true if the attribute is defined, false otherwise
  10643. * @api
  10644. * @static
  10645. */
  10646. public static function has($name){
  10647. //Method inherited from \Illuminate\Session\Store
  10648. return \Illuminate\Session\Store::has($name);
  10649. }
  10650. /**
  10651. * Returns an attribute.
  10652. *
  10653. * @param string $name The attribute name
  10654. * @param mixed $default The default value if not found.
  10655. * @return mixed
  10656. * @api
  10657. * @static
  10658. */
  10659. public static function get($name, $default = null){
  10660. //Method inherited from \Illuminate\Session\Store
  10661. return \Illuminate\Session\Store::get($name, $default);
  10662. }
  10663. /**
  10664. * Determine if the session contains old input.
  10665. *
  10666. * @param string $key
  10667. * @return bool
  10668. * @static
  10669. */
  10670. public static function hasOldInput($key = null){
  10671. //Method inherited from \Illuminate\Session\Store
  10672. return \Illuminate\Session\Store::hasOldInput($key);
  10673. }
  10674. /**
  10675. * Get the requested item from the flashed input array.
  10676. *
  10677. * @param string $key
  10678. * @param mixed $default
  10679. * @return mixed
  10680. * @static
  10681. */
  10682. public static function getOldInput($key = null, $default = null){
  10683. //Method inherited from \Illuminate\Session\Store
  10684. return \Illuminate\Session\Store::getOldInput($key, $default);
  10685. }
  10686. /**
  10687. * Sets an attribute.
  10688. *
  10689. * @param string $name
  10690. * @param mixed $value
  10691. * @api
  10692. * @static
  10693. */
  10694. public static function set($name, $value){
  10695. //Method inherited from \Illuminate\Session\Store
  10696. \Illuminate\Session\Store::set($name, $value);
  10697. }
  10698. /**
  10699. * Put a key / value pair or array of key / value pairs in the session.
  10700. *
  10701. * @param string|array $key
  10702. * @param mixed|null $value
  10703. * @return void
  10704. * @static
  10705. */
  10706. public static function put($key, $value){
  10707. //Method inherited from \Illuminate\Session\Store
  10708. \Illuminate\Session\Store::put($key, $value);
  10709. }
  10710. /**
  10711. * Push a value onto a session array.
  10712. *
  10713. * @param string $key
  10714. * @param mixed $value
  10715. * @return void
  10716. * @static
  10717. */
  10718. public static function push($key, $value){
  10719. //Method inherited from \Illuminate\Session\Store
  10720. \Illuminate\Session\Store::push($key, $value);
  10721. }
  10722. /**
  10723. * Flash a key / value pair to the session.
  10724. *
  10725. * @param string $key
  10726. * @param mixed $value
  10727. * @return void
  10728. * @static
  10729. */
  10730. public static function flash($key, $value){
  10731. //Method inherited from \Illuminate\Session\Store
  10732. \Illuminate\Session\Store::flash($key, $value);
  10733. }
  10734. /**
  10735. * Flash an input array to the session.
  10736. *
  10737. * @param array $value
  10738. * @return void
  10739. * @static
  10740. */
  10741. public static function flashInput($value){
  10742. //Method inherited from \Illuminate\Session\Store
  10743. \Illuminate\Session\Store::flashInput($value);
  10744. }
  10745. /**
  10746. * Reflash all of the session flash data.
  10747. *
  10748. * @return void
  10749. * @static
  10750. */
  10751. public static function reflash(){
  10752. //Method inherited from \Illuminate\Session\Store
  10753. \Illuminate\Session\Store::reflash();
  10754. }
  10755. /**
  10756. * Reflash a subset of the current flash data.
  10757. *
  10758. * @param array|dynamic $keys
  10759. * @return void
  10760. * @static
  10761. */
  10762. public static function keep($keys = null){
  10763. //Method inherited from \Illuminate\Session\Store
  10764. \Illuminate\Session\Store::keep($keys);
  10765. }
  10766. /**
  10767. * Returns attributes.
  10768. *
  10769. * @return array Attributes
  10770. * @api
  10771. * @static
  10772. */
  10773. public static function all(){
  10774. //Method inherited from \Illuminate\Session\Store
  10775. return \Illuminate\Session\Store::all();
  10776. }
  10777. /**
  10778. * Sets attributes.
  10779. *
  10780. * @param array $attributes Attributes
  10781. * @static
  10782. */
  10783. public static function replace($attributes){
  10784. //Method inherited from \Illuminate\Session\Store
  10785. \Illuminate\Session\Store::replace($attributes);
  10786. }
  10787. /**
  10788. * Removes an attribute.
  10789. *
  10790. * @param string $name
  10791. * @return mixed The removed value or null when it does not exist
  10792. * @api
  10793. * @static
  10794. */
  10795. public static function remove($name){
  10796. //Method inherited from \Illuminate\Session\Store
  10797. return \Illuminate\Session\Store::remove($name);
  10798. }
  10799. /**
  10800. * Remove an item from the session.
  10801. *
  10802. * @param string $key
  10803. * @return void
  10804. * @static
  10805. */
  10806. public static function forget($key){
  10807. //Method inherited from \Illuminate\Session\Store
  10808. \Illuminate\Session\Store::forget($key);
  10809. }
  10810. /**
  10811. * Clears all attributes.
  10812. *
  10813. * @api
  10814. * @static
  10815. */
  10816. public static function clear(){
  10817. //Method inherited from \Illuminate\Session\Store
  10818. \Illuminate\Session\Store::clear();
  10819. }
  10820. /**
  10821. * Remove all of the items from the session.
  10822. *
  10823. * @return void
  10824. * @static
  10825. */
  10826. public static function flush(){
  10827. //Method inherited from \Illuminate\Session\Store
  10828. \Illuminate\Session\Store::flush();
  10829. }
  10830. /**
  10831. * Checks if the session was started.
  10832. *
  10833. * @return bool
  10834. * @static
  10835. */
  10836. public static function isStarted(){
  10837. //Method inherited from \Illuminate\Session\Store
  10838. return \Illuminate\Session\Store::isStarted();
  10839. }
  10840. /**
  10841. * Registers a SessionBagInterface with the session.
  10842. *
  10843. * @param SessionBagInterface $bag
  10844. * @static
  10845. */
  10846. public static function registerBag($bag){
  10847. //Method inherited from \Illuminate\Session\Store
  10848. \Illuminate\Session\Store::registerBag($bag);
  10849. }
  10850. /**
  10851. * Gets a bag instance by name.
  10852. *
  10853. * @param string $name
  10854. * @return SessionBagInterface
  10855. * @static
  10856. */
  10857. public static function getBag($name){
  10858. //Method inherited from \Illuminate\Session\Store
  10859. return \Illuminate\Session\Store::getBag($name);
  10860. }
  10861. /**
  10862. * Gets session meta.
  10863. *
  10864. * @return MetadataBag
  10865. * @static
  10866. */
  10867. public static function getMetadataBag(){
  10868. //Method inherited from \Illuminate\Session\Store
  10869. return \Illuminate\Session\Store::getMetadataBag();
  10870. }
  10871. /**
  10872. * Get the raw bag data array for a given bag.
  10873. *
  10874. * @param string $name
  10875. * @return array
  10876. * @static
  10877. */
  10878. public static function getBagData($name){
  10879. //Method inherited from \Illuminate\Session\Store
  10880. return \Illuminate\Session\Store::getBagData($name);
  10881. }
  10882. /**
  10883. * Get the CSRF token value.
  10884. *
  10885. * @return string
  10886. * @static
  10887. */
  10888. public static function token(){
  10889. //Method inherited from \Illuminate\Session\Store
  10890. return \Illuminate\Session\Store::token();
  10891. }
  10892. /**
  10893. * Get the CSRF token value.
  10894. *
  10895. * @return string
  10896. * @static
  10897. */
  10898. public static function getToken(){
  10899. //Method inherited from \Illuminate\Session\Store
  10900. return \Illuminate\Session\Store::getToken();
  10901. }
  10902. /**
  10903. * Regenerate the CSRF token value.
  10904. *
  10905. * @return void
  10906. * @static
  10907. */
  10908. public static function regenerateToken(){
  10909. //Method inherited from \Illuminate\Session\Store
  10910. \Illuminate\Session\Store::regenerateToken();
  10911. }
  10912. /**
  10913. * Get the underlying session handler implementation.
  10914. *
  10915. * @return \SessionHandlerInterface
  10916. * @static
  10917. */
  10918. public static function getHandler(){
  10919. //Method inherited from \Illuminate\Session\Store
  10920. return \Illuminate\Session\Store::getHandler();
  10921. }
  10922. /**
  10923. * Determine if the session handler needs a request.
  10924. *
  10925. * @return bool
  10926. * @static
  10927. */
  10928. public static function handlerNeedsRequest(){
  10929. //Method inherited from \Illuminate\Session\Store
  10930. return \Illuminate\Session\Store::handlerNeedsRequest();
  10931. }
  10932. /**
  10933. * Set the request on the handler instance.
  10934. *
  10935. * @param \Symfony\Component\HttpFoundation\Request $request
  10936. * @return void
  10937. * @static
  10938. */
  10939. public static function setRequestOnHandler($request){
  10940. //Method inherited from \Illuminate\Session\Store
  10941. \Illuminate\Session\Store::setRequestOnHandler($request);
  10942. }
  10943. }
  10944. class SSH extends \Illuminate\Support\Facades\SSH{
  10945. /**
  10946. * Create a new remote manager instance.
  10947. *
  10948. * @param \Illuminate\Foundation\Application $app
  10949. * @return void
  10950. * @static
  10951. */
  10952. public static function __construct($app){
  10953. //Method inherited from \Illuminate\Remote\RemoteManager
  10954. \Illuminate\Remote\RemoteManager::__construct($app);
  10955. }
  10956. /**
  10957. * Get a remote connection instance.
  10958. *
  10959. * @param string|array|dynamic $name
  10960. * @return \Illuminate\Remote\ConnectionInterface
  10961. * @static
  10962. */
  10963. public static function into($name){
  10964. //Method inherited from \Illuminate\Remote\RemoteManager
  10965. return \Illuminate\Remote\RemoteManager::into($name);
  10966. }
  10967. /**
  10968. * Get a remote connection instance.
  10969. *
  10970. * @param string|array $name
  10971. * @return \Illuminate\Remote\ConnectionInterface
  10972. * @static
  10973. */
  10974. public static function connection($name = null){
  10975. //Method inherited from \Illuminate\Remote\RemoteManager
  10976. return \Illuminate\Remote\RemoteManager::connection($name);
  10977. }
  10978. /**
  10979. * Get a connection group instance by name.
  10980. *
  10981. * @param string $name
  10982. * @return \Illuminate\Remote\ConnectionInterface
  10983. * @static
  10984. */
  10985. public static function group($name){
  10986. //Method inherited from \Illuminate\Remote\RemoteManager
  10987. return \Illuminate\Remote\RemoteManager::group($name);
  10988. }
  10989. /**
  10990. * Resolve a multiple connection instance.
  10991. *
  10992. * @param array $names
  10993. * @return \Illuminate\Remote\MultiConnection
  10994. * @static
  10995. */
  10996. public static function multiple($names){
  10997. //Method inherited from \Illuminate\Remote\RemoteManager
  10998. return \Illuminate\Remote\RemoteManager::multiple($names);
  10999. }
  11000. /**
  11001. * Resolve a remote connection instance.
  11002. *
  11003. * @param string $name
  11004. * @return \Illuminate\Remote\Connection
  11005. * @static
  11006. */
  11007. public static function resolve($name){
  11008. //Method inherited from \Illuminate\Remote\RemoteManager
  11009. return \Illuminate\Remote\RemoteManager::resolve($name);
  11010. }
  11011. /**
  11012. * Get the default connection name.
  11013. *
  11014. * @return string
  11015. * @static
  11016. */
  11017. public static function getDefaultConnection(){
  11018. //Method inherited from \Illuminate\Remote\RemoteManager
  11019. return \Illuminate\Remote\RemoteManager::getDefaultConnection();
  11020. }
  11021. /**
  11022. * Set the default connection name.
  11023. *
  11024. * @param string $name
  11025. * @return void
  11026. * @static
  11027. */
  11028. public static function setDefaultConnection($name){
  11029. //Method inherited from \Illuminate\Remote\RemoteManager
  11030. \Illuminate\Remote\RemoteManager::setDefaultConnection($name);
  11031. }
  11032. /**
  11033. * Dynamically pass methods to the default connection.
  11034. *
  11035. * @param string $method
  11036. * @param array $parameters
  11037. * @return mixed
  11038. * @static
  11039. */
  11040. public static function __call($method, $parameters){
  11041. //Method inherited from \Illuminate\Remote\RemoteManager
  11042. return \Illuminate\Remote\RemoteManager::__call($method, $parameters);
  11043. }
  11044. }
  11045. class Str extends \Illuminate\Support\Str{
  11046. }
  11047. class URL extends \Illuminate\Support\Facades\URL{
  11048. /**
  11049. * Create a new URL Generator instance.
  11050. *
  11051. * @param \Illuminate\Routing\RouteCollection $routes
  11052. * @param \Symfony\Component\HttpFoundation\Request $request
  11053. * @return void
  11054. * @static
  11055. */
  11056. public static function __construct($routes, $request){
  11057. //Method inherited from \Illuminate\Routing\UrlGenerator
  11058. \Illuminate\Routing\UrlGenerator::__construct($routes, $request);
  11059. }
  11060. /**
  11061. * Get the full URL for the current request.
  11062. *
  11063. * @return string
  11064. * @static
  11065. */
  11066. public static function full(){
  11067. //Method inherited from \Illuminate\Routing\UrlGenerator
  11068. return \Illuminate\Routing\UrlGenerator::full();
  11069. }
  11070. /**
  11071. * Get the current URL for the request.
  11072. *
  11073. * @return string
  11074. * @static
  11075. */
  11076. public static function current(){
  11077. //Method inherited from \Illuminate\Routing\UrlGenerator
  11078. return \Illuminate\Routing\UrlGenerator::current();
  11079. }
  11080. /**
  11081. * Get the URL for the previous request.
  11082. *
  11083. * @return string
  11084. * @static
  11085. */
  11086. public static function previous(){
  11087. //Method inherited from \Illuminate\Routing\UrlGenerator
  11088. return \Illuminate\Routing\UrlGenerator::previous();
  11089. }
  11090. /**
  11091. * Generate a absolute URL to the given path.
  11092. *
  11093. * @param string $path
  11094. * @param mixed $extra
  11095. * @param bool $secure
  11096. * @return string
  11097. * @static
  11098. */
  11099. public static function to($path, $extra = array(), $secure = null){
  11100. //Method inherited from \Illuminate\Routing\UrlGenerator
  11101. return \Illuminate\Routing\UrlGenerator::to($path, $extra, $secure);
  11102. }
  11103. /**
  11104. * Generate a secure, absolute URL to the given path.
  11105. *
  11106. * @param string $path
  11107. * @param array $parameters
  11108. * @return string
  11109. * @static
  11110. */
  11111. public static function secure($path, $parameters = array()){
  11112. //Method inherited from \Illuminate\Routing\UrlGenerator
  11113. return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  11114. }
  11115. /**
  11116. * Generate a URL to an application asset.
  11117. *
  11118. * @param string $path
  11119. * @param bool $secure
  11120. * @return string
  11121. * @static
  11122. */
  11123. public static function asset($path, $secure = null){
  11124. //Method inherited from \Illuminate\Routing\UrlGenerator
  11125. return \Illuminate\Routing\UrlGenerator::asset($path, $secure);
  11126. }
  11127. /**
  11128. * Generate a URL to a secure asset.
  11129. *
  11130. * @param string $path
  11131. * @return string
  11132. * @static
  11133. */
  11134. public static function secureAsset($path){
  11135. //Method inherited from \Illuminate\Routing\UrlGenerator
  11136. return \Illuminate\Routing\UrlGenerator::secureAsset($path);
  11137. }
  11138. /**
  11139. * Get the URL to a named route.
  11140. *
  11141. * @param string $name
  11142. * @param mixed $parameters
  11143. * @param bool $absolute
  11144. * @param \Illuminate\Routing\Route $route
  11145. * @return string
  11146. * @throws \InvalidArgumentException
  11147. * @static
  11148. */
  11149. public static function route($name, $parameters = array(), $absolute = true, $route = null){
  11150. //Method inherited from \Illuminate\Routing\UrlGenerator
  11151. return \Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute, $route);
  11152. }
  11153. /**
  11154. * Get the URL to a controller action.
  11155. *
  11156. * @param string $action
  11157. * @param mixed $parameters
  11158. * @param bool $absolute
  11159. * @return string
  11160. * @static
  11161. */
  11162. public static function action($action, $parameters = array(), $absolute = true){
  11163. //Method inherited from \Illuminate\Routing\UrlGenerator
  11164. return \Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  11165. }
  11166. /**
  11167. * Determine if the given path is a valid URL.
  11168. *
  11169. * @param string $path
  11170. * @return bool
  11171. * @static
  11172. */
  11173. public static function isValidUrl($path){
  11174. //Method inherited from \Illuminate\Routing\UrlGenerator
  11175. return \Illuminate\Routing\UrlGenerator::isValidUrl($path);
  11176. }
  11177. /**
  11178. * Get the request instance.
  11179. *
  11180. * @return \Symfony\Component\HttpFoundation\Request
  11181. * @static
  11182. */
  11183. public static function getRequest(){
  11184. //Method inherited from \Illuminate\Routing\UrlGenerator
  11185. return \Illuminate\Routing\UrlGenerator::getRequest();
  11186. }
  11187. /**
  11188. * Set the current request instance.
  11189. *
  11190. * @param \Symfony\Component\HttpFoundation\Request $request
  11191. * @return void
  11192. * @static
  11193. */
  11194. public static function setRequest($request){
  11195. //Method inherited from \Illuminate\Routing\UrlGenerator
  11196. \Illuminate\Routing\UrlGenerator::setRequest($request);
  11197. }
  11198. }
  11199. class Validator extends \Illuminate\Support\Facades\Validator{
  11200. /**
  11201. * Create a new Validator factory instance.
  11202. *
  11203. * @param \Symfony\Component\Translation\TranslatorInterface $translator
  11204. * @param \Illuminate\Container\Container $container
  11205. * @return void
  11206. * @static
  11207. */
  11208. public static function __construct($translator, $container = null){
  11209. //Method inherited from \Illuminate\Validation\Factory
  11210. \Illuminate\Validation\Factory::__construct($translator, $container);
  11211. }
  11212. /**
  11213. * Create a new Validator instance.
  11214. *
  11215. * @param array $data
  11216. * @param array $rules
  11217. * @param array $messages
  11218. * @param array $customAttributes
  11219. * @return \Illuminate\Validation\Validator
  11220. * @static
  11221. */
  11222. public static function make($data, $rules, $messages = array(), $customAttributes = array()){
  11223. //Method inherited from \Illuminate\Validation\Factory
  11224. return \Illuminate\Validation\Factory::make($data, $rules, $messages, $customAttributes);
  11225. }
  11226. /**
  11227. * Register a custom validator extension.
  11228. *
  11229. * @param string $rule
  11230. * @param \Closure|string $extension
  11231. * @param string $message
  11232. * @return void
  11233. * @static
  11234. */
  11235. public static function extend($rule, $extension, $message = null){
  11236. //Method inherited from \Illuminate\Validation\Factory
  11237. \Illuminate\Validation\Factory::extend($rule, $extension, $message);
  11238. }
  11239. /**
  11240. * Register a custom implicit validator extension.
  11241. *
  11242. * @param string $rule
  11243. * @param \Closure|string $extension
  11244. * @param string $message
  11245. * @return void
  11246. * @static
  11247. */
  11248. public static function extendImplicit($rule, $extension, $message = null){
  11249. //Method inherited from \Illuminate\Validation\Factory
  11250. \Illuminate\Validation\Factory::extendImplicit($rule, $extension, $message);
  11251. }
  11252. /**
  11253. * Register a custom implicit validator message replacer.
  11254. *
  11255. * @param string $rule
  11256. * @param \Closure|string $replacer
  11257. * @return void
  11258. * @static
  11259. */
  11260. public static function replacer($rule, $replacer){
  11261. //Method inherited from \Illuminate\Validation\Factory
  11262. \Illuminate\Validation\Factory::replacer($rule, $replacer);
  11263. }
  11264. /**
  11265. * Set the Validator instance resolver.
  11266. *
  11267. * @param Closure $resolver
  11268. * @return void
  11269. * @static
  11270. */
  11271. public static function resolver($resolver){
  11272. //Method inherited from \Illuminate\Validation\Factory
  11273. \Illuminate\Validation\Factory::resolver($resolver);
  11274. }
  11275. /**
  11276. * Get the Translator implementation.
  11277. *
  11278. * @return \Symfony\Component\Translation\TranslatorInterface
  11279. * @static
  11280. */
  11281. public static function getTranslator(){
  11282. //Method inherited from \Illuminate\Validation\Factory
  11283. return \Illuminate\Validation\Factory::getTranslator();
  11284. }
  11285. /**
  11286. * Get the Presence Verifier implementation.
  11287. *
  11288. * @return \Illuminate\Validation\PresenceVerifierInterface
  11289. * @static
  11290. */
  11291. public static function getPresenceVerifier(){
  11292. //Method inherited from \Illuminate\Validation\Factory
  11293. return \Illuminate\Validation\Factory::getPresenceVerifier();
  11294. }
  11295. /**
  11296. * Set the Presence Verifier implementation.
  11297. *
  11298. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11299. * @return void
  11300. * @static
  11301. */
  11302. public static function setPresenceVerifier($presenceVerifier){
  11303. //Method inherited from \Illuminate\Validation\Factory
  11304. \Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  11305. }
  11306. }
  11307. class View extends \Illuminate\Support\Facades\View{
  11308. /**
  11309. * Create a new view environment instance.
  11310. *
  11311. * @param \Illuminate\View\Engines\EngineResolver $engines
  11312. * @param \Illuminate\View\ViewFinderInterface $finder
  11313. * @param \Illuminate\Events\Dispatcher $events
  11314. * @return void
  11315. * @static
  11316. */
  11317. public static function __construct($engines, $finder, $events){
  11318. //Method inherited from \Illuminate\View\Environment
  11319. \Illuminate\View\Environment::__construct($engines, $finder, $events);
  11320. }
  11321. /**
  11322. * Get the evaluated view contents for the given view.
  11323. *
  11324. * @param string $view
  11325. * @param array $data
  11326. * @param array $mergeData
  11327. * @return \Illuminate\View\View
  11328. * @static
  11329. */
  11330. public static function make($view, $data = array(), $mergeData = array()){
  11331. //Method inherited from \Illuminate\View\Environment
  11332. return \Illuminate\View\Environment::make($view, $data, $mergeData);
  11333. }
  11334. /**
  11335. * Get the evaluated view contents for a named view.
  11336. *
  11337. * @param string $view
  11338. * @param mixed $data
  11339. * @return \Illuminate\View\View
  11340. * @static
  11341. */
  11342. public static function of($view, $data = array()){
  11343. //Method inherited from \Illuminate\View\Environment
  11344. return \Illuminate\View\Environment::of($view, $data);
  11345. }
  11346. /**
  11347. * Register a named view.
  11348. *
  11349. * @param string $view
  11350. * @param string $name
  11351. * @return void
  11352. * @static
  11353. */
  11354. public static function name($view, $name){
  11355. //Method inherited from \Illuminate\View\Environment
  11356. \Illuminate\View\Environment::name($view, $name);
  11357. }
  11358. /**
  11359. * Determine if a given view exists.
  11360. *
  11361. * @param string $view
  11362. * @return bool
  11363. * @static
  11364. */
  11365. public static function exists($view){
  11366. //Method inherited from \Illuminate\View\Environment
  11367. return \Illuminate\View\Environment::exists($view);
  11368. }
  11369. /**
  11370. * Get the rendered contents of a partial from a loop.
  11371. *
  11372. * @param string $view
  11373. * @param array $data
  11374. * @param string $iterator
  11375. * @param string $empty
  11376. * @return string
  11377. * @static
  11378. */
  11379. public static function renderEach($view, $data, $iterator, $empty = 'raw|'){
  11380. //Method inherited from \Illuminate\View\Environment
  11381. return \Illuminate\View\Environment::renderEach($view, $data, $iterator, $empty);
  11382. }
  11383. /**
  11384. * Add a piece of shared data to the environment.
  11385. *
  11386. * @param string $key
  11387. * @param mixed $value
  11388. * @return void
  11389. * @static
  11390. */
  11391. public static function share($key, $value = null){
  11392. //Method inherited from \Illuminate\View\Environment
  11393. \Illuminate\View\Environment::share($key, $value);
  11394. }
  11395. /**
  11396. * Register a view creator event.
  11397. *
  11398. * @param array|string $views
  11399. * @param \Closure|string $callback
  11400. * @return array
  11401. * @static
  11402. */
  11403. public static function creator($views, $callback){
  11404. //Method inherited from \Illuminate\View\Environment
  11405. return \Illuminate\View\Environment::creator($views, $callback);
  11406. }
  11407. /**
  11408. * Register multiple view composers via an array.
  11409. *
  11410. * @param array $composers
  11411. * @return array
  11412. * @static
  11413. */
  11414. public static function composers($composers){
  11415. //Method inherited from \Illuminate\View\Environment
  11416. return \Illuminate\View\Environment::composers($composers);
  11417. }
  11418. /**
  11419. * Register a view composer event.
  11420. *
  11421. * @param array|string $views
  11422. * @param \Closure|string $callback
  11423. * @return array
  11424. * @static
  11425. */
  11426. public static function composer($views, $callback, $priority = null){
  11427. //Method inherited from \Illuminate\View\Environment
  11428. return \Illuminate\View\Environment::composer($views, $callback, $priority);
  11429. }
  11430. /**
  11431. * Call the composer for a given view.
  11432. *
  11433. * @param \Illuminate\View\View $view
  11434. * @return void
  11435. * @static
  11436. */
  11437. public static function callComposer($view){
  11438. //Method inherited from \Illuminate\View\Environment
  11439. \Illuminate\View\Environment::callComposer($view);
  11440. }
  11441. /**
  11442. * Call the creator for a given view.
  11443. *
  11444. * @param \Illuminate\View\View $view
  11445. * @return void
  11446. * @static
  11447. */
  11448. public static function callCreator($view){
  11449. //Method inherited from \Illuminate\View\Environment
  11450. \Illuminate\View\Environment::callCreator($view);
  11451. }
  11452. /**
  11453. * Start injecting content into a section.
  11454. *
  11455. * @param string $section
  11456. * @param string $content
  11457. * @return void
  11458. * @static
  11459. */
  11460. public static function startSection($section, $content = ''){
  11461. //Method inherited from \Illuminate\View\Environment
  11462. \Illuminate\View\Environment::startSection($section, $content);
  11463. }
  11464. /**
  11465. * Inject inline content into a section.
  11466. *
  11467. * @param string $section
  11468. * @param string $content
  11469. * @return void
  11470. * @static
  11471. */
  11472. public static function inject($section, $content){
  11473. //Method inherited from \Illuminate\View\Environment
  11474. \Illuminate\View\Environment::inject($section, $content);
  11475. }
  11476. /**
  11477. * Stop injecting content into a section and return its contents.
  11478. *
  11479. * @return string
  11480. * @static
  11481. */
  11482. public static function yieldSection(){
  11483. //Method inherited from \Illuminate\View\Environment
  11484. return \Illuminate\View\Environment::yieldSection();
  11485. }
  11486. /**
  11487. * Stop injecting content into a section.
  11488. *
  11489. * @param bool $overwrite
  11490. * @return string
  11491. * @static
  11492. */
  11493. public static function stopSection($overwrite = false){
  11494. //Method inherited from \Illuminate\View\Environment
  11495. return \Illuminate\View\Environment::stopSection($overwrite);
  11496. }
  11497. /**
  11498. * Stop injecting content into a section and append it.
  11499. *
  11500. * @return string
  11501. * @static
  11502. */
  11503. public static function appendSection(){
  11504. //Method inherited from \Illuminate\View\Environment
  11505. return \Illuminate\View\Environment::appendSection();
  11506. }
  11507. /**
  11508. * Get the string contents of a section.
  11509. *
  11510. * @param string $section
  11511. * @param string $default
  11512. * @return string
  11513. * @static
  11514. */
  11515. public static function yieldContent($section, $default = ''){
  11516. //Method inherited from \Illuminate\View\Environment
  11517. return \Illuminate\View\Environment::yieldContent($section, $default);
  11518. }
  11519. /**
  11520. * Flush all of the section contents.
  11521. *
  11522. * @return void
  11523. * @static
  11524. */
  11525. public static function flushSections(){
  11526. //Method inherited from \Illuminate\View\Environment
  11527. \Illuminate\View\Environment::flushSections();
  11528. }
  11529. /**
  11530. * Flush all of the section contents if done rendering.
  11531. *
  11532. * @return void
  11533. * @static
  11534. */
  11535. public static function flushSectionsIfDoneRendering(){
  11536. //Method inherited from \Illuminate\View\Environment
  11537. \Illuminate\View\Environment::flushSectionsIfDoneRendering();
  11538. }
  11539. /**
  11540. * Increment the rendering counter.
  11541. *
  11542. * @return void
  11543. * @static
  11544. */
  11545. public static function incrementRender(){
  11546. //Method inherited from \Illuminate\View\Environment
  11547. \Illuminate\View\Environment::incrementRender();
  11548. }
  11549. /**
  11550. * Decrement the rendering counter.
  11551. *
  11552. * @return void
  11553. * @static
  11554. */
  11555. public static function decrementRender(){
  11556. //Method inherited from \Illuminate\View\Environment
  11557. \Illuminate\View\Environment::decrementRender();
  11558. }
  11559. /**
  11560. * Check if there are no active render operations.
  11561. *
  11562. * @return bool
  11563. * @static
  11564. */
  11565. public static function doneRendering(){
  11566. //Method inherited from \Illuminate\View\Environment
  11567. return \Illuminate\View\Environment::doneRendering();
  11568. }
  11569. /**
  11570. * Add a location to the array of view locations.
  11571. *
  11572. * @param string $location
  11573. * @return void
  11574. * @static
  11575. */
  11576. public static function addLocation($location){
  11577. //Method inherited from \Illuminate\View\Environment
  11578. \Illuminate\View\Environment::addLocation($location);
  11579. }
  11580. /**
  11581. * Add a new namespace to the loader.
  11582. *
  11583. * @param string $namespace
  11584. * @param string|array $hints
  11585. * @return void
  11586. * @static
  11587. */
  11588. public static function addNamespace($namespace, $hints){
  11589. //Method inherited from \Illuminate\View\Environment
  11590. \Illuminate\View\Environment::addNamespace($namespace, $hints);
  11591. }
  11592. /**
  11593. * Prepend a new namespace to the loader.
  11594. *
  11595. * @param string $namespace
  11596. * @param string|array $hints
  11597. * @return void
  11598. * @static
  11599. */
  11600. public static function prependNamespace($namespace, $hints){
  11601. //Method inherited from \Illuminate\View\Environment
  11602. \Illuminate\View\Environment::prependNamespace($namespace, $hints);
  11603. }
  11604. /**
  11605. * Register a valid view extension and its engine.
  11606. *
  11607. * @param string $extension
  11608. * @param string $engine
  11609. * @param Closure $resolver
  11610. * @return void
  11611. * @static
  11612. */
  11613. public static function addExtension($extension, $engine, $resolver = null){
  11614. //Method inherited from \Illuminate\View\Environment
  11615. \Illuminate\View\Environment::addExtension($extension, $engine, $resolver);
  11616. }
  11617. /**
  11618. * Get the extension to engine bindings.
  11619. *
  11620. * @return array
  11621. * @static
  11622. */
  11623. public static function getExtensions(){
  11624. //Method inherited from \Illuminate\View\Environment
  11625. return \Illuminate\View\Environment::getExtensions();
  11626. }
  11627. /**
  11628. * Get the engine resolver instance.
  11629. *
  11630. * @return \Illuminate\View\Engines\EngineResolver
  11631. * @static
  11632. */
  11633. public static function getEngineResolver(){
  11634. //Method inherited from \Illuminate\View\Environment
  11635. return \Illuminate\View\Environment::getEngineResolver();
  11636. }
  11637. /**
  11638. * Get the view finder instance.
  11639. *
  11640. * @return \Illuminate\View\ViewFinderInterface
  11641. * @static
  11642. */
  11643. public static function getFinder(){
  11644. //Method inherited from \Illuminate\View\Environment
  11645. return \Illuminate\View\Environment::getFinder();
  11646. }
  11647. /**
  11648. * Set the view finder instance.
  11649. *
  11650. * @return void
  11651. * @static
  11652. */
  11653. public static function setFinder($finder){
  11654. //Method inherited from \Illuminate\View\Environment
  11655. \Illuminate\View\Environment::setFinder($finder);
  11656. }
  11657. /**
  11658. * Get the event dispatcher instance.
  11659. *
  11660. * @return \Illuminate\Events\Dispatcher
  11661. * @static
  11662. */
  11663. public static function getDispatcher(){
  11664. //Method inherited from \Illuminate\View\Environment
  11665. return \Illuminate\View\Environment::getDispatcher();
  11666. }
  11667. /**
  11668. * Set the event dispatcher instance.
  11669. *
  11670. * @param \Illuminate\Events\Dispatcher
  11671. * @return void
  11672. * @static
  11673. */
  11674. public static function setDispatcher($events){
  11675. //Method inherited from \Illuminate\View\Environment
  11676. \Illuminate\View\Environment::setDispatcher($events);
  11677. }
  11678. /**
  11679. * Get the IoC container instance.
  11680. *
  11681. * @return \Illuminate\Container\Container
  11682. * @static
  11683. */
  11684. public static function getContainer(){
  11685. //Method inherited from \Illuminate\View\Environment
  11686. return \Illuminate\View\Environment::getContainer();
  11687. }
  11688. /**
  11689. * Set the IoC container instance.
  11690. *
  11691. * @param \Illuminate\Container\Container $container
  11692. * @return void
  11693. * @static
  11694. */
  11695. public static function setContainer($container){
  11696. //Method inherited from \Illuminate\View\Environment
  11697. \Illuminate\View\Environment::setContainer($container);
  11698. }
  11699. /**
  11700. * Get an item from the shared data.
  11701. *
  11702. * @param string $key
  11703. * @param mixed $default
  11704. * @return mixed
  11705. * @static
  11706. */
  11707. public static function shared($key, $default = null){
  11708. //Method inherited from \Illuminate\View\Environment
  11709. return \Illuminate\View\Environment::shared($key, $default);
  11710. }
  11711. /**
  11712. * Get all of the shared data for the environment.
  11713. *
  11714. * @return array
  11715. * @static
  11716. */
  11717. public static function getShared(){
  11718. //Method inherited from \Illuminate\View\Environment
  11719. return \Illuminate\View\Environment::getShared();
  11720. }
  11721. /**
  11722. * Get the entire array of sections.
  11723. *
  11724. * @return array
  11725. * @static
  11726. */
  11727. public static function getSections(){
  11728. //Method inherited from \Illuminate\View\Environment
  11729. return \Illuminate\View\Environment::getSections();
  11730. }
  11731. /**
  11732. * Get all of the registered named views in environment.
  11733. *
  11734. * @return array
  11735. * @static
  11736. */
  11737. public static function getNames(){
  11738. //Method inherited from \Illuminate\View\Environment
  11739. return \Illuminate\View\Environment::getNames();
  11740. }
  11741. }
  11742. }