Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Moved core into root for dev branch as well.

  • Loading branch information...
commit e338c1b46c83385ebf5e97d2159e7d02dcc0d4ad 1 parent e3cc538
@jschreuder jschreuder authored
Showing with 0 additions and 9,514 deletions.
  1. +0 −33 README.md
  2. +0 −126 TESTING.md
  3. 0  {fuel/core → }/base.php
  4. 0  {fuel/core → }/bootstrap.php
  5. 0  {fuel/core → }/bootstrap_phpunit.php
  6. 0  {fuel/core → }/classes/agent.php
  7. 0  {fuel/core → }/classes/arr.php
  8. 0  {fuel/core → }/classes/asset.php
  9. 0  {fuel/core → }/classes/autoloader.php
  10. 0  {fuel/core → }/classes/cache.php
  11. 0  {fuel/core → }/classes/cache/exception.php
  12. 0  {fuel/core → }/classes/cache/handler/driver.php
  13. 0  {fuel/core → }/classes/cache/handler/json.php
  14. 0  {fuel/core → }/classes/cache/handler/serialized.php
  15. 0  {fuel/core → }/classes/cache/handler/string.php
  16. 0  {fuel/core → }/classes/cache/storage/driver.php
  17. 0  {fuel/core → }/classes/cache/storage/file.php
  18. 0  {fuel/core → }/classes/cache/storage/memcached.php
  19. 0  {fuel/core → }/classes/cache/storage/redis.php
  20. 0  {fuel/core → }/classes/cli.php
  21. 0  {fuel/core → }/classes/config.php
  22. 0  {fuel/core → }/classes/controller.php
  23. 0  {fuel/core → }/classes/controller/rest.php
  24. 0  {fuel/core → }/classes/controller/template.php
  25. 0  {fuel/core → }/classes/cookie.php
  26. 0  {fuel/core → }/classes/crypt.php
  27. 0  {fuel/core → }/classes/database/connection.php
  28. 0  {fuel/core → }/classes/database/exception.php
  29. 0  {fuel/core → }/classes/database/expression.php
  30. 0  {fuel/core → }/classes/database/mysql/connection.php
  31. 0  {fuel/core → }/classes/database/mysql/result.php
  32. 0  {fuel/core → }/classes/database/mysqli/connection.php
  33. 0  {fuel/core → }/classes/database/mysqli/result.php
  34. 0  {fuel/core → }/classes/database/pdo/connection.php
  35. 0  {fuel/core → }/classes/database/query.php
  36. 0  {fuel/core → }/classes/database/query/builder.php
  37. 0  {fuel/core → }/classes/database/query/builder/delete.php
  38. 0  {fuel/core → }/classes/database/query/builder/insert.php
  39. 0  {fuel/core → }/classes/database/query/builder/join.php
  40. 0  {fuel/core → }/classes/database/query/builder/select.php
  41. 0  {fuel/core → }/classes/database/query/builder/update.php
  42. 0  {fuel/core → }/classes/database/query/builder/where.php
  43. 0  {fuel/core → }/classes/database/result.php
  44. 0  {fuel/core → }/classes/database/result/cached.php
  45. 0  {fuel/core → }/classes/database/transaction.php
  46. 0  {fuel/core → }/classes/date.php
  47. 0  {fuel/core → }/classes/db.php
  48. 0  {fuel/core → }/classes/dbutil.php
  49. 0  {fuel/core → }/classes/debug.php
  50. 0  {fuel/core → }/classes/email.php
  51. 0  {fuel/core → }/classes/email/driver.php
  52. 0  {fuel/core → }/classes/email/mail.php
  53. 0  {fuel/core → }/classes/email/sendmail.php
  54. 0  {fuel/core → }/classes/email/smtp.php
  55. 0  {fuel/core → }/classes/error.php
  56. 0  {fuel/core → }/classes/event.php
  57. 0  {fuel/core → }/classes/fieldset.php
  58. 0  {fuel/core → }/classes/fieldset/field.php
  59. 0  {fuel/core → }/classes/file.php
  60. 0  {fuel/core → }/classes/file/area.php
  61. 0  {fuel/core → }/classes/file/driver/directory.php
  62. 0  {fuel/core → }/classes/file/driver/file.php
  63. 0  {fuel/core → }/classes/file/exception.php
  64. 0  {fuel/core → }/classes/form.php
  65. 0  {fuel/core → }/classes/format.php
  66. 0  {fuel/core → }/classes/ftp.php
  67. 0  {fuel/core → }/classes/fuel.php
  68. 0  {fuel/core → }/classes/fuel/exception.php
  69. 0  {fuel/core → }/classes/html.php
  70. 0  {fuel/core → }/classes/image.php
  71. 0  {fuel/core → }/classes/image/driver.php
  72. 0  {fuel/core → }/classes/image/gd.php
  73. 0  {fuel/core → }/classes/image/imagemagick.php
  74. 0  {fuel/core → }/classes/inflector.php
  75. 0  {fuel/core → }/classes/input.php
  76. 0  {fuel/core → }/classes/lang.php
  77. 0  {fuel/core → }/classes/log.php
  78. 0  {fuel/core → }/classes/migrate.php
  79. 0  {fuel/core → }/classes/model.php
  80. 0  {fuel/core → }/classes/pagination.php
  81. 0  {fuel/core → }/classes/profiler.php
  82. 0  {fuel/core → }/classes/redis.php
  83. 0  {fuel/core → }/classes/redis/exception.php
  84. 0  {fuel/core → }/classes/request.php
  85. 0  {fuel/core → }/classes/response.php
  86. 0  {fuel/core → }/classes/route.php
  87. 0  {fuel/core → }/classes/router.php
  88. 0  {fuel/core → }/classes/security.php
  89. 0  {fuel/core → }/classes/session.php
  90. 0  {fuel/core → }/classes/session/cookie.php
  91. 0  {fuel/core → }/classes/session/db.php
  92. 0  {fuel/core → }/classes/session/driver.php
  93. 0  {fuel/core → }/classes/session/exception.php
  94. 0  {fuel/core → }/classes/session/file.php
  95. 0  {fuel/core → }/classes/session/memcached.php
  96. 0  {fuel/core → }/classes/session/redis.php
  97. 0  {fuel/core → }/classes/singleton.php
  98. 0  {fuel/core → }/classes/str.php
  99. 0  {fuel/core → }/classes/testcase.php
  100. 0  {fuel/core → }/classes/unzip.php
  101. 0  {fuel/core → }/classes/upload.php
  102. 0  {fuel/core → }/classes/uri.php
  103. 0  {fuel/core → }/classes/validation.php
  104. 0  {fuel/core → }/classes/validation/error.php
  105. 0  {fuel/core → }/classes/view.php
  106. 0  {fuel/core → }/classes/view/exception.php
  107. 0  {fuel/core → }/classes/viewmodel.php
  108. 0  {fuel/core → }/config/agent.php
  109. 0  {fuel/core → }/config/ascii.php
  110. 0  {fuel/core → }/config/asset.php
  111. 0  {fuel/core → }/config/cache.php
  112. 0  {fuel/core → }/config/date.php
  113. 0  {fuel/core → }/config/doctypes.php
  114. 0  {fuel/core → }/config/email.php
  115. 0  {fuel/core → }/config/form.php
  116. 0  {fuel/core → }/config/ftp.php
  117. 0  {fuel/core → }/config/image.php
  118. 0  {public/assets/js → config}/index.html
  119. 0  {fuel/core → }/config/migrations.php
  120. 0  {fuel/core → }/config/mimes.php
  121. 0  {fuel/core → }/config/package.php
  122. 0  {fuel/core → }/config/rest.php
  123. 0  {fuel/core → }/config/session.php
  124. 0  {fuel/core → }/config/upload.php
  125. +0 −21 fuel/LICENSE
  126. +0 −29 fuel/app/bootstrap.php
  127. 0  fuel/app/cache/.gitkeep
  128. 0  fuel/app/classes/controller/.gitkeep
  129. +0 −42 fuel/app/classes/controller/welcome.php
  130. 0  fuel/app/classes/model/.gitkeep
  131. +0 −176 fuel/app/config/config.php
  132. +0 −48 fuel/app/config/crypt.php
  133. +0 −87 fuel/app/config/db.php
  134. 0  fuel/app/config/index.html
  135. +0 −12 fuel/app/config/routes.php
  136. 0  fuel/app/lang/en/index.html
  137. 0  fuel/app/lang/index.html
  138. 0  fuel/app/logs/.gitkeep
  139. 0  fuel/app/migrations/.gitkeep
  140. 0  fuel/app/modules/.gitkeep
  141. +0 −114 fuel/app/tasks/robots.php
  142. 0  fuel/app/tmp/.gitkeep
  143. 0  fuel/app/views/.gitkeep
  144. +0 −44 fuel/app/views/welcome/404.php
  145. +0 −56 fuel/app/views/welcome/index.php
  146. 0  fuel/core/config/index.html
  147. 0  fuel/core/lang/.gitkeep
  148. +0 −21 fuel/packages/activerecord/LICENSE.txt
  149. +0 −27 fuel/packages/activerecord/bootstrap.php
  150. +0 −101 fuel/packages/activerecord/classes/association.php
  151. +0 −102 fuel/packages/activerecord/classes/belongsto.php
  152. +0 −29 fuel/packages/activerecord/classes/exception.php
  153. +0 −301 fuel/packages/activerecord/classes/hasmany.php
  154. +0 −96 fuel/packages/activerecord/classes/hasone.php
  155. +0 −1,236 fuel/packages/activerecord/classes/model.php
  156. +0 −31 fuel/packages/auth/bootstrap.php
  157. +0 −418 fuel/packages/auth/classes/auth.php
  158. +0 −66 fuel/packages/auth/classes/auth/acl/driver.php
  159. +0 −73 fuel/packages/auth/classes/auth/acl/simpleacl.php
  160. +0 −119 fuel/packages/auth/classes/auth/driver.php
  161. +0 −20 fuel/packages/auth/classes/auth/exception.php
  162. +0 −127 fuel/packages/auth/classes/auth/group/driver.php
  163. +0 −68 fuel/packages/auth/classes/auth/group/simplegroup.php
  164. +0 −228 fuel/packages/auth/classes/auth/login/driver.php
  165. +0 −416 fuel/packages/auth/classes/auth/login/simpleauth.php
  166. +0 −6 fuel/packages/auth/config/auth.php
  167. +0 −22 fuel/packages/auth/config/simpleauth.php
  168. +0 −27 fuel/packages/oil/bootstrap.php
  169. +0 −178 fuel/packages/oil/classes/command.php
  170. +0 −229 fuel/packages/oil/classes/console.php
  171. +0 −34 fuel/packages/oil/classes/exception.php
  172. +0 −516 fuel/packages/oil/classes/generate.php
  173. +0 −120 fuel/packages/oil/classes/generate/migration/actions.php
  174. +0 −201 fuel/packages/oil/classes/package.php
  175. +0 −107 fuel/packages/oil/classes/refine.php
  176. +0 −113 fuel/packages/oil/classes/scaffold.php
  177. +0 −23 fuel/packages/oil/views/default/scaffold/actions/create.php
  178. +0 −13 fuel/packages/oil/views/default/scaffold/actions/delete.php
  179. +0 −28 fuel/packages/oil/views/default/scaffold/actions/edit.php
  180. +0 −3  fuel/packages/oil/views/default/scaffold/actions/index.php
  181. +0 −4 fuel/packages/oil/views/default/scaffold/actions/view.php
  182. +0 −10 fuel/packages/oil/views/default/scaffold/ar_model.php
  183. +0 −15 fuel/packages/oil/views/default/scaffold/controller.php
  184. +0 −26 fuel/packages/oil/views/default/scaffold/views/_form.php
  185. +0 −5 fuel/packages/oil/views/default/scaffold/views/create.php
  186. +0 −6 fuel/packages/oil/views/default/scaffold/views/edit.php
  187. +0 −28 fuel/packages/oil/views/default/scaffold/views/index.php
  188. +0 −9 fuel/packages/oil/views/default/scaffold/views/view.php
  189. +0 −29 fuel/packages/oil/views/default/template.php
  190. +0 −43 fuel/packages/orm/bootstrap.php
  191. +0 −175 fuel/packages/orm/classes/belongsto.php
  192. +0 −45 fuel/packages/orm/classes/exceptions.php
  193. +0 −204 fuel/packages/orm/classes/hasmany.php
  194. +0 −185 fuel/packages/orm/classes/hasone.php
  195. +0 −262 fuel/packages/orm/classes/manymany.php
  196. +0 −164 fuel/packages/orm/classes/manythrough.php
  197. +0 −1,036 fuel/packages/orm/classes/model.php
  198. +0 −42 fuel/packages/orm/classes/observer.php
  199. +0 −25 fuel/packages/orm/classes/observer/createdon.php
  200. +0 −193 fuel/packages/orm/classes/observer/typing.php
  201. +0 −25 fuel/packages/orm/classes/observer/updatedon.php
  202. +0 −62 fuel/packages/orm/classes/observer/validation.php
  203. +0 −789 fuel/packages/orm/classes/query.php
  204. +0 −144 fuel/packages/orm/classes/relation.php
  205. 0  {fuel/packages → lang}/.gitkeep
  206. 0  {fuel/core → }/lang/en/.gitkeep
  207. 0  {fuel/core → }/lang/en/date.php
  208. 0  {fuel/core → }/lang/en/test.php
  209. 0  {fuel/core → }/lang/en/validation.php
  210. +0 −42 oil
  211. 0  {fuel/core → }/phpunit.xml
  212. +0 −8 public/.htaccess
  213. 0  public/assets/css/index.html
  214. 0  public/assets/img/index.html
  215. +0 −51 public/index.php
  216. 0  {fuel/core → }/tasks/install.php
  217. 0  {fuel/core → }/tasks/migrate.php
  218. 0  {fuel/core → }/tests/arr.php
  219. 0  {fuel/core → }/tests/date.php
  220. 0  {fuel/core → }/tests/html.php
  221. 0  {fuel/core → }/tests/inflector.php
  222. 0  {fuel/core → }/tests/uri.php
  223. 0  {fuel/core → }/vendor/htmlawed/htmlawed.php
  224. 0  {fuel/core → }/vendor/phpquickprofiler/console.php
  225. 0  {fuel/core → }/vendor/phpquickprofiler/display.php
  226. 0  {fuel/core → }/vendor/phpquickprofiler/phpquickprofiler.php
  227. 0  {fuel/core → }/vendor/spyc/spyc.php
  228. 0  {fuel/core → }/views/404.php
  229. 0  {fuel/core → }/views/errors/php_error.php
  230. 0  {fuel/core → }/views/errors/php_fatal_error.php
  231. 0  {fuel/core → }/views/errors/php_short.php
  232. 0  {fuel/core → }/views/errors/production.php
View
33 README.md
@@ -1,33 +0,0 @@
-#Fuel
-
-* [Website](http://fuelphp.com/)
-* [Documentation](http://fuelphp.com/docs) and in its own [git repo](https://github.com/fuel/docs)
-* [Bugtracker & feature requests](http://dev.fuelphp.com)
-* [Forums](http://fuelphp.com/forums) for comments, discussion and community support
-* Version: 1.0.0-beta1
-
-## Description
-
-Fuel is a fast, lightweight PHP 5.3 framework. In an age where frameworks are a dime a dozen, We believe that Fuel will stand out in the crowd. It will do this by combining all the things you love about the great frameworks out there, while getting rid of the bad.
-
-##Development Team
-
-* Dan Horrigan - Lead Developer ([http://dhorrigan.com](http://dhorrigan.com))
-* Phil Sturgeon - Developer ([http://philsturgeon.co.uk](http://philsturgeon.co.uk))
-* Jelmer Schreuder - Developer ([http://jelmerschreuder.nl/](http://jelmerschreuder.nl/))
-* Harro Verton - Developer ([http://wanwizard.eu/](http://wanwizard.eu/))
-
-##Requirements
-
-The planned requirements for Fuel are as follows:
-
-* PHP 5.3 or greater
-* Any web server
-
-That's it! Nothing else.
-
-##Donate
-
-[Donate Here](http://www.pledgie.com/campaigns/14124)
-
-Any donations would help support the framework and pay for software, development and hosting costs. We understand if you cannot, but greatly appreciate anything you can give.
View
126 TESTING.md
@@ -1,126 +0,0 @@
-# Testing Fuel
-
-Fuel uses [PHPUnit](https://github.com/sebastianbergmann/phpunit/) for it's Unit Testing needs. It must be installed for the tests to run.
-
-**NOTE: No code will be accepted without tests written.**
-
-## Running Tests
-
-Running the unit tests is as simple as navigating to the root install folder on the command line and running the following:
-
- $ phpunit
-
-That's it! You can also tell it specific groups (which we will get into in minute) to run. For example to run only the core tests:
-
- $ phpunit --group Core
-
-## Writing Tests
-
-### Where do they go?
-
-All tests are to go in the **tests** folders inside their respective parent folder. For instance:
-
-* App tests go in *fuel/app/tests*
-* Core tests go in *fuel/core/tests*
-* Package tests go in *fuel/packages/package_name/tests*
-
-### File / Class Naming
-
-The Test class names should be in the form of **Tests_Whatever**.
-
-Filenames should be all lower case and be the class name minus the "Tests_" part.
-
-Some example names:
-
- // Good
- Tests_Arr in fuel/core/tests/arr.php
- Tests_Image in fuel/core/tests/image.php
- Tests_Fuel in fuel/core/tests/fuel.php
-
- // Bad
- Arrtests
- Somestuff
-
-### Test Grouping
-
-All tests inside the **core** folder must be in the **core** group. A classes test's should also be grouped together under the name of the class.
-
-Here is an example of a core class test with proper DocBlocks:
-
- /**
- * Arr class tests
- *
- * @group Core
- * @group Arr
- */
- class Tests_Arr extends TestCase {
-
- /**
- * Tests Arr::element()
- *
- * @test
- */
- public function test_element()
- {
- // Test code here
- }
- }
-
-All App tests should be in the **app** group.
-
-### Namespaces
-
-All **core** tests should be in the **Fuel\Core** namespace. This is so that we are sure we are testing the core classes,
-not any extensions that may be in *app*.
-
-App tests can be in any namespace.
-
-### What class do I extend?
-
-All tests should extend the **Fuel\Core\TestCase** class.
-
-**NOTE: if you are in the Fuel\Core namespace you can leave off the Fuel\Core namespace and just extend **TestCase**.
-
-## Example
-
- namespace Fuel\Core;
-
- /**
- * Arr class tests
- *
- * @group Core
- * @group Arr
- */
- class Tests_Arr extends TestCase {
-
- /**
- * Tests Arr::flatten_assoc()
- *
- * @test
- */
- public function test_flatten_assoc()
- {
- $people = array(
- array(
- "name" => "Jack",
- "age" => 21
- ),
- array(
- "name" => "Jill",
- "age" => 23
- )
- );
-
- $expected = array(
- "0:name" => "Jack",
- "0:age" => 21,
- "1:name" => "Jill",
- "1:age" => 23
- );
-
- $output = Arr::flatten_assoc($people);
- $this->assertEquals($expected, $output);
- }
-
- }
-
View
0  fuel/core/base.php → base.php
File renamed without changes
View
0  fuel/core/bootstrap.php → bootstrap.php
File renamed without changes
View
0  fuel/core/bootstrap_phpunit.php → bootstrap_phpunit.php
File renamed without changes
View
0  fuel/core/classes/agent.php → classes/agent.php
File renamed without changes
View
0  fuel/core/classes/arr.php → classes/arr.php
File renamed without changes
View
0  fuel/core/classes/asset.php → classes/asset.php
File renamed without changes
View
0  fuel/core/classes/autoloader.php → classes/autoloader.php
File renamed without changes
View
0  fuel/core/classes/cache.php → classes/cache.php
File renamed without changes
View
0  fuel/core/classes/cache/exception.php → classes/cache/exception.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/cache/handler/driver.php → classes/cache/handler/driver.php
File renamed without changes
View
0  fuel/core/classes/cache/handler/json.php → classes/cache/handler/json.php
File renamed without changes
View
0  fuel/core/classes/cache/handler/serialized.php → classes/cache/handler/serialized.php
File renamed without changes
View
0  fuel/core/classes/cache/handler/string.php → classes/cache/handler/string.php
File renamed without changes
View
0  fuel/core/classes/cache/storage/driver.php → classes/cache/storage/driver.php
File renamed without changes
View
0  fuel/core/classes/cache/storage/file.php → classes/cache/storage/file.php
File renamed without changes
View
0  fuel/core/classes/cache/storage/memcached.php → classes/cache/storage/memcached.php
File renamed without changes
View
0  fuel/core/classes/cache/storage/redis.php → classes/cache/storage/redis.php
File renamed without changes
View
0  fuel/core/classes/cli.php → classes/cli.php
File renamed without changes
View
0  fuel/core/classes/config.php → classes/config.php
File renamed without changes
View
0  fuel/core/classes/controller.php → classes/controller.php
File renamed without changes
View
0  fuel/core/classes/controller/rest.php → classes/controller/rest.php
File renamed without changes
View
0  fuel/core/classes/controller/template.php → classes/controller/template.php
File renamed without changes
View
0  fuel/core/classes/cookie.php → classes/cookie.php
File renamed without changes
View
0  fuel/core/classes/crypt.php → classes/crypt.php
File renamed without changes
View
0  fuel/core/classes/database/connection.php → classes/database/connection.php
File renamed without changes
View
0  fuel/core/classes/database/exception.php → classes/database/exception.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/expression.php → classes/database/expression.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/mysql/connection.php → classes/database/mysql/connection.php
File renamed without changes
View
0  fuel/core/classes/database/mysql/result.php → classes/database/mysql/result.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/mysqli/connection.php → classes/database/mysqli/connection.php
File renamed without changes
View
0  fuel/core/classes/database/mysqli/result.php → classes/database/mysqli/result.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/pdo/connection.php → classes/database/pdo/connection.php
File renamed without changes
View
0  fuel/core/classes/database/query.php → classes/database/query.php
File renamed without changes
View
0  fuel/core/classes/database/query/builder.php → classes/database/query/builder.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/query/builder/delete.php → classes/database/query/builder/delete.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/query/builder/insert.php → classes/database/query/builder/insert.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/query/builder/join.php → classes/database/query/builder/join.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/query/builder/select.php → classes/database/query/builder/select.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/query/builder/update.php → classes/database/query/builder/update.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/query/builder/where.php → classes/database/query/builder/where.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/result.php → classes/database/result.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/result/cached.php → classes/database/result/cached.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/database/transaction.php → classes/database/transaction.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/date.php → classes/date.php
File renamed without changes
View
0  fuel/core/classes/db.php → classes/db.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/dbutil.php → classes/dbutil.php
File renamed without changes
View
0  fuel/core/classes/debug.php → classes/debug.php
File renamed without changes
View
0  fuel/core/classes/email.php → classes/email.php
File renamed without changes
View
0  fuel/core/classes/email/driver.php → classes/email/driver.php
File renamed without changes
View
0  fuel/core/classes/email/mail.php → classes/email/mail.php
File renamed without changes
View
0  fuel/core/classes/email/sendmail.php → classes/email/sendmail.php
File renamed without changes
View
0  fuel/core/classes/email/smtp.php → classes/email/smtp.php
File renamed without changes
View
0  fuel/core/classes/error.php → classes/error.php
File renamed without changes
View
0  fuel/core/classes/event.php → classes/event.php
File renamed without changes
View
0  fuel/core/classes/fieldset.php → classes/fieldset.php
File renamed without changes
View
0  fuel/core/classes/fieldset/field.php → classes/fieldset/field.php
File renamed without changes
View
0  fuel/core/classes/file.php → classes/file.php
File renamed without changes
View
0  fuel/core/classes/file/area.php → classes/file/area.php
File renamed without changes
View
0  fuel/core/classes/file/driver/directory.php → classes/file/driver/directory.php
File renamed without changes
View
0  fuel/core/classes/file/driver/file.php → classes/file/driver/file.php
File renamed without changes
View
0  fuel/core/classes/file/exception.php → classes/file/exception.php
File renamed without changes
View
0  fuel/core/classes/form.php → classes/form.php
File renamed without changes
View
0  fuel/core/classes/format.php → classes/format.php
File renamed without changes
View
0  fuel/core/classes/ftp.php → classes/ftp.php
File renamed without changes
View
0  fuel/core/classes/fuel.php → classes/fuel.php
File renamed without changes
View
0  fuel/core/classes/fuel/exception.php → classes/fuel/exception.php
File renamed without changes
View
0  fuel/core/classes/html.php → classes/html.php
File renamed without changes
View
0  fuel/core/classes/image.php → classes/image.php
File renamed without changes
View
0  fuel/core/classes/image/driver.php → classes/image/driver.php
File renamed without changes
View
0  fuel/core/classes/image/gd.php → classes/image/gd.php
File renamed without changes
View
0  fuel/core/classes/image/imagemagick.php → classes/image/imagemagick.php
File renamed without changes
View
0  fuel/core/classes/inflector.php → classes/inflector.php
File renamed without changes
View
0  fuel/core/classes/input.php → classes/input.php
File renamed without changes
View
0  fuel/core/classes/lang.php → classes/lang.php
File renamed without changes
View
0  fuel/core/classes/log.php → classes/log.php
File renamed without changes
View
0  fuel/core/classes/migrate.php → classes/migrate.php
File renamed without changes
View
0  fuel/core/classes/model.php → classes/model.php
File renamed without changes
View
0  fuel/core/classes/pagination.php → classes/pagination.php
File renamed without changes
View
0  fuel/core/classes/profiler.php → classes/profiler.php
File renamed without changes
View
0  fuel/core/classes/redis.php → classes/redis.php
File renamed without changes
View
0  fuel/core/classes/redis/exception.php → classes/redis/exception.php
File renamed without changes
View
0  fuel/core/classes/request.php → classes/request.php
File renamed without changes
View
0  fuel/core/classes/response.php → classes/response.php
File renamed without changes
View
0  fuel/core/classes/route.php → classes/route.php
File renamed without changes
View
0  fuel/core/classes/router.php → classes/router.php
File renamed without changes
View
0  fuel/core/classes/security.php → classes/security.php
File renamed without changes
View
0  fuel/core/classes/session.php → classes/session.php
File renamed without changes
View
0  fuel/core/classes/session/cookie.php → classes/session/cookie.php
File renamed without changes
View
0  fuel/core/classes/session/db.php → classes/session/db.php
File renamed without changes
View
0  fuel/core/classes/session/driver.php → classes/session/driver.php
File renamed without changes
View
0  fuel/core/classes/session/exception.php → classes/session/exception.php 100755 → 100644
File renamed without changes
View
0  fuel/core/classes/session/file.php → classes/session/file.php
File renamed without changes
View
0  fuel/core/classes/session/memcached.php → classes/session/memcached.php
File renamed without changes
View
0  fuel/core/classes/session/redis.php → classes/session/redis.php
File renamed without changes
View
0  fuel/core/classes/singleton.php → classes/singleton.php
File renamed without changes
View
0  fuel/core/classes/str.php → classes/str.php
File renamed without changes
View
0  fuel/core/classes/testcase.php → classes/testcase.php
File renamed without changes
View
0  fuel/core/classes/unzip.php → classes/unzip.php
File renamed without changes
View
0  fuel/core/classes/upload.php → classes/upload.php
File renamed without changes
View
0  fuel/core/classes/uri.php → classes/uri.php
File renamed without changes
View
0  fuel/core/classes/validation.php → classes/validation.php
File renamed without changes
View
0  fuel/core/classes/validation/error.php → classes/validation/error.php
File renamed without changes
View
0  fuel/core/classes/view.php → classes/view.php
File renamed without changes
View
0  fuel/core/classes/view/exception.php → classes/view/exception.php
File renamed without changes
View
0  fuel/core/classes/viewmodel.php → classes/viewmodel.php
File renamed without changes
View
0  fuel/core/config/agent.php → config/agent.php
File renamed without changes
View
0  fuel/core/config/ascii.php → config/ascii.php
File renamed without changes
View
0  fuel/core/config/asset.php → config/asset.php
File renamed without changes
View
0  fuel/core/config/cache.php → config/cache.php
File renamed without changes
View
0  fuel/core/config/date.php → config/date.php
File renamed without changes
View
0  fuel/core/config/doctypes.php → config/doctypes.php
File renamed without changes
View
0  fuel/core/config/email.php → config/email.php
File renamed without changes
View
0  fuel/core/config/form.php → config/form.php
File renamed without changes
View
0  fuel/core/config/ftp.php → config/ftp.php
File renamed without changes
View
0  fuel/core/config/image.php → config/image.php
File renamed without changes
View
0  public/assets/js/index.html → config/index.html
File renamed without changes
View
0  fuel/core/config/migrations.php → config/migrations.php
File renamed without changes
View
0  fuel/core/config/mimes.php → config/mimes.php
File renamed without changes
View
0  fuel/core/config/package.php → config/package.php
File renamed without changes
View
0  fuel/core/config/rest.php → config/rest.php
File renamed without changes
View
0  fuel/core/config/session.php → config/session.php
File renamed without changes
View
0  fuel/core/config/upload.php → config/upload.php
File renamed without changes
View
21 fuel/LICENSE
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2010 - 2011 Fuel Development Team
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
View
29 fuel/app/bootstrap.php
@@ -1,29 +0,0 @@
-<?php
-
-// Bootstrap the framework DO NOT edit this
-require_once COREPATH.'bootstrap.php';
-
-/**
- * Set the timezone to what you need it to be.
- */
-date_default_timezone_set('UTC');
-
-/**
- * Set the encoding you would like to use.
- */
-Fuel::$encoding = 'UTF-8';
-
-
-Autoloader::add_classes(array(
- // Add classes you want to override here
- // Example: 'View' => APPPATH.'classes/view.php',
-));
-
-// Register the autoloader
-Autoloader::register();
-
-// Initialize the framework with the config file.
-Fuel::init(include(APPPATH.'config/config.php'));
-
-
-/* End of file bootstrap.php */
View
0  fuel/app/cache/.gitkeep
No changes.
View
0  fuel/app/classes/controller/.gitkeep
No changes.
View
42 fuel/app/classes/controller/welcome.php
@@ -1,42 +0,0 @@
-<?php
-
-/**
- * The Welcome Controller.
- *
- * A basic controller example. Has examples of how to set the
- * response body and status.
- *
- * @package app
- * @extends Controller
- */
-class Controller_Welcome extends Controller {
-
- /**
- * The index action.
- *
- * @access public
- * @return void
- */
- public function action_index()
- {
- $this->response->body = View::factory('welcome/index');
- }
-
- /**
- * The 404 action for the application.
- *
- * @access public
- * @return void
- */
- public function action_404()
- {
- $messages = array('Aw, crap!', 'Bloody Hell!', 'Uh Oh!', 'Nope, not here.', 'Huh?');
- $data['title'] = $messages[array_rand($messages)];
-
- // Set a HTTP 404 output header
- $this->response->status = 404;
- $this->response->body = View::factory('welcome/404', $data);
- }
-}
-
-/* End of file welcome.php */
View
0  fuel/app/classes/model/.gitkeep
No changes.
View
176 fuel/app/config/config.php
@@ -1,176 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-return array(
-
- /**
- * index_file - The name of the main bootstrap file.
- *
- * Set this to false or remove if you using mod_rewrite.
- */
- 'index_file' => 'index.php',
-
- /**
- * Your environment. Can be set to any of the following:
- *
- * Fuel::DEVELOPMENT
- * Fuel::TEST
- * Fuel::QA
- * Fuel::PRODUCTION
- */
- 'environment' => Fuel::DEVELOPMENT,
-
- 'profiling' => false,
-
- 'caching' => false,
- 'cache_dir' => APPPATH.'cache/',
- 'cache_lifetime' => 3600, // In Seconds
-
- 'errors' => array(
-
- // Which errors should we show, but continue execution?
- 'continue_on' => array(E_NOTICE, E_WARNING, E_DEPRECATED, E_STRICT),
-
- // How many errors should we show before we stop showing them? (prevents out-of-memory errors)
- 'throttle' => 10,
-
- 'notices' => true,
- ),
-
- 'language' => 'en',
-
- 'locale' => 'en_US',
-
- /**
- * DateTime settings
- *
- * server_gmt_offset in seconds the server offset from gmt timestamp when time() is used
- * default_timezone optional, if you want to change the server's default timezone
- */
- 'server_gmt_offset' => 0,
-
- /**
- * Logging Threshold. Can be set to any of the following:
- *
- * Fuel::L_NONE
- * Fuel::L_ERROR
- * Fuel::L_DEBUG
- * Fuel::L_INFO
- * Fuel::L_ALL
- */
- 'log_threshold' => Fuel::L_ERROR,
- 'log_path' => APPPATH.'logs/',
- 'log_date_format' => 'Y-m-d H:i:s',
-
- /**
- * Security settings
- */
- 'security' => array(
- 'csrf_autoload' => false,
- 'csrf_token_key' => 'fuel_csrf_token',
- 'csrf_expiration' => 0,
- 'uri_filter' => array('htmlentities'),
-
- /**
- * This input filter can be any normal PHP function as well as 'xss_clean'
- *
- * WARNING: Using xss_clean will cause a performance hit. How much is
- * dependant on how much input data there is.
- */
- 'input_filter' => array(),
-
- /**
- * Whether to automatically encode (htmlentities) view data
- */
- 'auto_encode_view_data' => true,
-
- /**
- * With output encoding switched on all objects passed will be converted to strings or
- * throw exceptions unless they are instances of the classes in this array.
- */
- 'whitelisted_classes' => array('Fuel\\Core\\View', 'Fuel\\Core\\ViewModel', 'Closure')
- ),
-
- /**
- * To enable you to split up your application into modules which can be
- * routed by the first uri segment you have to define their basepaths
- * here. By default empty, but to use them you can add something
- * like this:
- * array(APPPATH.'modules'.DS)
- */
- 'module_paths' => array(
- //APPPATH.'modules'.DS
- ),
-
-
- /**************************************************************************/
- /* Always Load */
- /**************************************************************************/
-
- 'always_load' => array(
-
- /**
- * These packages are loaded on Fuel's startup. You can specify them in
- * the following manner:
- *
- * array('auth'); // This will assume the packages are in PKGPATH
- *
- * // Use this format to specify the path to the package explicitly
- * array(
- * array('auth' => PKGPATH.'auth/')
- * );
- */
- 'packages' => array(
- //'orm',
- ),
-
- /**
- * These modules are always loaded on Fuel's startup. You can specify them
- * in the following manner:
- *
- * array('module_name');
- *
- * A path must be set in module_paths for this to work.
- */
- 'modules' => array(),
-
- /**
- * Classes to autoload & initialize even when not used
- */
- 'classes' => array(),
-
- /**
- * Configs to autoload
- *
- * Examples: if you want to load 'session' config into a group 'session' you only have to
- * add 'session'. If you want to add it to another group (example: 'auth') you have to
- * add it like 'session' => 'auth'.
- * If you don't want the config in a group use null as groupname.
- */
- 'config' => array(),
-
- /**
- * Language files to autoload
- *
- * Examples: if you want to load 'validation' lang into a group 'validation' you only have to
- * add 'validation'. If you want to add it to another group (example: 'forms') you have to
- * add it like 'validation' => 'forms'.
- * If you don't want the lang in a group use null as groupname.
- */
- 'language' => array(),
- ),
-
-);
-
-/* End of file config.php */
View
48 fuel/app/config/crypt.php
@@ -1,48 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-return array(
-
- /**
- * Encryption salt.
- *
- * Make sure to update this to something completely random!!!!
- */
- 'salt' => 'sup3rs3Cr3tk3y564',
-
- /**
- * Indicate if you want to use the MCRYPT libaries if available.
- *
- * Note that if your encrypted data has to be portable, set this to false
- * unless you know all target platforms have mcrypt available too
- */
- 'use_mcrypt' => true,
-
- /**
- * MCRYPT cipher to use
- *
- * See http://www.php.net/manual/en/mcrypt.ciphers.php for available ciphers
- */
- 'mcrypt_cipher' => 'rijndael-256',
-
- /**
- * MCRYPT cipher mode to use
- *
- * See http://www.php.net/manual/en/mcrypt.constants.php for available cipher modes
- */
- 'mcrypt_mode' => 'cbc'
-
-);
-
-/* End of file config/crypt.php */
View
87 fuel/app/config/db.php
@@ -1,87 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-return array(
- 'active' => Config::get('environment'),
-
- 'dev' => array(
- 'type' => 'mysql',
- 'connection' => array(
- 'hostname' => 'localhost',
- 'database' => 'fuel_dev',
- 'username' => 'root',
- 'password' => '',
- 'persistent' => false,
- ),
- 'table_prefix' => '',
- 'charset' => 'utf8',
- 'caching' => false,
- 'profiling' => false,
- ),
-
- 'production' => array(
- 'type' => 'mysql',
- 'connection' => array(
- 'hostname' => 'localhost',
- 'database' => 'fuel_prod',
- 'username' => 'root',
- 'password' => '',
- 'persistent' => false,
- ),
- 'table_prefix' => '',
- 'charset' => 'utf8',
- 'caching' => false,
- 'profiling' => false,
- ),
-
- 'test' => array(
- 'type' => 'mysql',
- 'connection' => array(
- 'hostname' => 'localhost',
- 'database' => 'fuel_test',
- 'username' => 'root',
- 'password' => '',
- 'persistent' => false,
- ),
- 'table_prefix' => '',
- 'charset' => 'utf8',
- 'caching' => false,
- 'profiling' => false,
- ),
-
- 'qa' => array(
- 'type' => 'mysql',
- 'connection' => array(
- 'hostname' => 'localhost',
- 'database' => 'fuel_qa',
- 'username' => 'root',
- 'password' => '',
- 'persistent' => false,
- ),
- 'table_prefix' => '',
- 'charset' => 'utf8',
- 'caching' => false,
- 'profiling' => false,
- ),
-
- 'redis' => array(
- 'default' => array(
- 'hostname' => '127.0.0.1',
- 'port' => 6379,
- )
- ),
-
-);
-
-/* End of file db.php */
View
0  fuel/app/config/index.html
No changes.
View
12 fuel/app/config/routes.php
@@ -1,12 +0,0 @@
-<?php
-return array(
- '_root_' => 'welcome/index', // The default route
- '_404_' => 'welcome/404', // The main 404 route
-
- /**
- * This is an example of a BASIC named route (used in reverse routing).
- * The translated route MUST come first, and the 'name' element must come
- * after it.
- */
- // 'foo/bar' => array('welcome/foo', 'name' => 'foo'),
-);
View
0  fuel/app/lang/en/index.html
No changes.
View
0  fuel/app/lang/index.html
No changes.
View
0  fuel/app/logs/.gitkeep
No changes.
View
0  fuel/app/migrations/.gitkeep
No changes.
View
0  fuel/app/modules/.gitkeep
No changes.
View
114 fuel/app/tasks/robots.php
@@ -1,114 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-namespace Fuel\Tasks;
-
-/**
- * Robot example task
- *
- * Ruthlessly stolen from the beareded Canadian sexy symbol:
- *
- * Derek Allard: http://derekallard.com/
- *
- * @package Fuel
- * @version 1.0
- * @author Phil Sturgeon
- */
-
-class Robots {
-
- /**
- * This method gets ran when a valid method name is not used in the command.
- *
- * Usage (from command line):
- *
- * php oil r robots
- *
- * or
- *
- * php oil r robots "Kill all Mice"
- *
- * @return string
- */
- public static function run($speech = null)
- {
- if ( ! isset($speech))
- {
- $speech = 'KILL ALL HUMANS!';
- }
-
- $eye = \Cli::color("*", 'red');
-
- return \Cli::color("
- \"{$speech}\"
- _____ /
- /_____\\", 'blue')."\n"
-.\Cli::color(" ____[\\", 'blue').$eye.\Cli::color('---', 'blue').$eye.\Cli::color('/]____', 'blue')."\n"
-.\Cli::color(" /\\ #\\ \\_____/ /# /\\
- / \\# \\_.---._/ #/ \\
- / /|\\ | | /|\\ \\
- /___/ | | | | | | \\___\\
- | | | | |---| | | | |
- |__| \\_| |_#_| |_/ |__|
- //\\\\ <\\ _//^\\\\_ /> //\\\\
- \\||/ |\\//// \\\\\\\\/| \\||/
- | | | |
- |---| |---|
- |---| |---|
- | | | |
- |___| |___|
- / \\ / \\
- |_____| |_____|
- |HHHHH| |HHHHH|", 'blue');
- }
-
- /**
- * An example method that is here just to show the various uses of tasks.
- *
- * Usage (from command line):
- *
- * php oil r robots:protect
- *
- * @return string
- */
- public static function protect()
- {
- $eye = \Cli::color("*", 'green');
-
- return \Cli::color("
- \"PROTECT ALL HUMANS\"
- _____ /
- /_____\\", 'blue')."\n"
-.\Cli::color(" ____[\\", 'blue').$eye.\Cli::color('---', 'blue').$eye.\Cli::color('/]____', 'blue')."\n"
-.\Cli::color(" /\\ #\\ \\_____/ /# /\\
- / \\# \\_.---._/ #/ \\
- / /|\\ | | /|\\ \\
- /___/ | | | | | | \\___\\
- | | | | |---| | | | |
- |__| \\_| |_#_| |_/ |__|
- //\\\\ <\\ _//^\\\\_ /> //\\\\
- \\||/ |\\//// \\\\\\\\/| \\||/
- | | | |
- |---| |---|
- |---| |---|
- | | | |
- |___| |___|
- / \\ / \\
- |_____| |_____|
- |HHHHH| |HHHHH|", 'blue');
-
- }
-}
-
-/* End of file tasks/robots.php */
View
0  fuel/app/tmp/.gitkeep
No changes.
View
0  fuel/app/views/.gitkeep
No changes.
View
44 fuel/app/views/welcome/404.php
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title><?php echo e($title); ?></title>
- <style type="text/css">
- * { margin: 0; padding: 0; }
- body { background-color: #EEE; font-family: sans-serif; font-size: 16px; line-height: 20px; margin: 40px; }
- #wrapper { padding: 30px; background: #fff; color: #333; margin: 0 auto; width: 600px; }
- a { color: #36428D; }
- h1 { color: #000; font-size: 55px; padding: 0 0 25px; line-height: 1em; }
- .intro { font-size: 22px; line-height: 30px; font-family: georgia, serif; color: #555; padding: 29px 0 20px; border-top: 1px solid #CCC; }
- h2 { margin: 50px 0 15px; padding: 0 0 10px; font-size: 18px; border-bottom: 1px dashed #ccc; }
- h2.first { margin: 10px 0 15px; }
- p { margin: 0 0 15px; line-height: 22px;}
- a { color: #666; }
- pre { border-left: 1px solid #ddd; line-height:20px; margin:20px; padding-left:1em; font-size: 16px; }
- pre, code { color:#137F80; font-family: Courier, monospace; }
- ul { margin: 15px 30px; }
- li { line-height: 24px;}
- .footer { color: #777; font-size: 12px; margin: 40px 0 0 0; }
- </style>
-</head>
-<body>
- <div id="wrapper">
- <h1><?php echo e($title); ?></h1>
-
- <p class="intro">The page you are looking for cannot be found.</p>
-
- <p>The controller that is generating this page is located here:</p>
-
- <pre><code>APPPATH/classes/controller/welcome.php</code></pre>
-
- <p>This view can be located here:</p>
-
- <pre><code>APPPATH/views/welcome/404.php</code></pre>
-
-
- <p class="footer">
- <a href="http://fuelphp.com">Fuel PHP</a> is released under the MIT license.<br />Page rendered in {exec_time}s using {mem_usage}mb of memory.
- </p>
- </div>
-</body>
-</html>
View
56 fuel/app/views/welcome/index.php
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title>Fuel PHP Framework</title>
- <style type="text/css">
- * { margin: 0; padding: 0; }
- body { background-color: #EEE; font-family: sans-serif; font-size: 16px; line-height: 20px; margin: 40px; }
- #wrapper { padding: 30px; background: #fff; color: #333; margin: 0 auto; width: 600px; }
- a { color: #36428D; }
- h1 { color: #000; font-size: 55px; padding: 0 0 25px; line-height: 1em; }
- .intro { font-size: 22px; line-height: 30px; font-family: georgia, serif; color: #555; padding: 29px 0 20px; border-top: 1px solid #CCC; }
- h2 { margin: 50px 0 15px; padding: 0 0 10px; font-size: 18px; border-bottom: 1px dashed #ccc; }
- h2.first { margin: 10px 0 15px; }
- p { margin: 0 0 15px; line-height: 22px;}
- a { color: #666; }
- pre { border-left: 1px solid #ddd; line-height:20px; margin:20px; padding-left:1em; font-size: 16px; }
- pre, code { color:#137F80; font-family: Courier, monospace; }
- ul { margin: 15px 30px; }
- li { line-height: 24px;}
- .footer { color: #777; font-size: 12px; margin: 40px 0 0 0; }
- </style>
-</head>
-<body>
- <div id="wrapper">
- <h1>Fuel</h1>
-
- <p class="intro">You have successfully installed the Fuel PHP Framework.</p>
-
- <h2 class="first">Version: <?php echo e(Fuel::VERSION); ?></h2>
-
- <p>The controller that is generating this page is located here:</p>
-
- <pre><code>APPPATH/classes/controller/welcome.php</code></pre>
-
- <p>This view can be located here:</p>
-
- <pre><code>APPPATH/views/welcome/index.php</code></pre>
-
- <h2>Now What?</h2>
-
- <p>Now that you have Fuel installed, here are a few links you might find useful:</p>
-
- <ul>
- <li><a href="http://fuelphp.com/docs" target="_blank">Documentation</a></li>
- <li><a href="http://fuelphp.com/" target="_blank">Official Website</a></li>
- <li><a href="http://github.com/fuel/fuel" target="_blank">GitHub Respository</a></li>
- <li><a href="http://dev.fuelphp.com" target="_blank">Issue Tracker</a></li>
- </ul>
-
- <p class="footer">
- <a href="http://fuelphp.com">Fuel PHP</a> is released under the MIT license.<br />Page rendered in {exec_time}s using {mem_usage}mb of memory.
- </p>
- </div>
-</body>
-</html>
View
0  fuel/core/config/index.html
No changes.
View
0  fuel/core/lang/.gitkeep
No changes.
View
21 fuel/packages/activerecord/LICENSE.txt
@@ -1,21 +0,0 @@
-Copyright (c) 2007, Luke Baker
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- * Neither the name of Luke Baker nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
27 fuel/packages/activerecord/bootstrap.php
@@ -1,27 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-
-
-Autoloader::add_classes(array(
- 'ActiveRecord\\Association' => __DIR__.'/classes/association.php',
- 'ActiveRecord\\BelongsTo' => __DIR__.'/classes/belongsto.php',
- 'ActiveRecord\\Exception' => __DIR__.'/classes/exception.php',
- 'ActiveRecord\\HasMany' => __DIR__.'/classes/hasmany.php',
- 'ActiveRecord\\HasOne' => __DIR__.'/classes/hasone.php',
- 'ActiveRecord\\Model' => __DIR__.'/classes/model.php',
-));
-
-
-/* End of file bootstrap.php */
View
101 fuel/packages/activerecord/classes/association.php
@@ -1,101 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-
-namespace ActiveRecord;
-
-
-use \DB;
-
-class Association {
-
- protected $dest_class;
- protected $source_class;
- protected $value;
- protected $options;
-
- public function __construct($source, $dest, $options = null)
- {
- $this->source_class = get_class($source);
-
- if (isset($options['class_name']))
- {
- $this->dest_class = $options['class_name'];
- }
- else
- {
- $this->dest_class = static::class_name($dest);
- }
-
- if (isset($options['foreign_key']))
- {
- $this->foreign_key = $options['foreign_key'];
- }
- else
- {
- $this->foreign_key = \Inflector::foreign_key($this->source_class);
- }
-
- $namespace = (\Request::active() ? ucfirst(\Request::active()->module) : '').'\\';
- if (class_exists($dest = $namespace.'Model_'.$this->dest_class))
- {
- $this->dest_class = $dest;
- }
-
- if ( ! class_exists($this->source_class))
- {
- $this->source_class = 'Model_'.$this->source_class;
- }
-
- $this->options = $options;
- }
-
- public function needs_saving()
- {
- if ( ! $this->value instanceof $this->dest_class)
- {
- return false;
- }
- else
- {
- return $this->value->is_new_record() || $this->value->is_modified();
- }
- }
-
- public function delete(&$source)
- {
- if (isset($this->options['dependent']) && $this->options['dependent'] == 'destroy')
- {
- $this->get($source);
- if (is_array($this->value))
- {
- foreach ($this->value as $val)
- {
- $val->destroy();
- }
- }
- else
- {
- $this->value->destroy();
- }
- }
- }
-
- public static function class_name($name)
- {
- return str_replace(array(' ', '-'), '_', ucwords(str_replace('_', ' ', \Inflector::singularize($name))));
- }
-}
-
-/* End of file association.php */
View
102 fuel/packages/activerecord/classes/belongsto.php
@@ -1,102 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-namespace ActiveRecord;
-
-
-use \DB;
-
-class BelongsTo extends Association {
-
- public function __construct($source, $dest, $options = null)
- {
- parent::__construct($source, $dest, $options);
-
- // Belongs to has different foreign key from has_one/has_many so overwrite default
- // when it wasn't given
- if (empty($options['foreign_key']))
- {
- $this->foreign_key = \Inflector::foreign_key($this->dest_class);
- }
- }
-
- public function set($value, &$source)
- {
- if ($value instanceof $this->dest_class)
- {
- if ( ! $value->is_new_record())
- {
- $source->{$this->foreign_key} = $value->{$value->get_primary_key()};
- }
- else
- {
- $source->{$this->foreign_key} = null;
- }
- $this->value = $value;
- }
- else
- {
- throw new \Fuel_Exception("Did not get expected class: {$this->dest_class}", Exception::UnexpectedClass);
- }
- }
-
- public function get(&$source, $force=false)
- {
- if ($this->value instanceof $this->dest_class && !$force)
- {
- return $this->value;
- }
- else
- {
- $this->value = call_user_func_array(
- array($this->dest_class, 'find'),
- array($source->{$this->foreign_key}));
- return $this->value;
- }
- }
-
- public function join()
- {
- $dest_table = \Inflector::tableize($this->dest_class);
- $source_table = \Inflector::tableize($this->source_class);
- $dest_inst = new $this->dest_class;
- $columns = $dest_inst->get_columns();
-
- $join = array(
- 'table' => $dest_table,
- 'type' => 'LEFT OUTER',
- 'on' => array($source_table.'.'.$this->foreign_key, '=', $dest_table.'.'.$dest_inst->get_primary_key())
- );
-
- return array(array($dest_table => $columns), $join);
- }
-
- public function populate_from_find($attributes)
- {
- // check if all attributes are NULL
- $uniq_vals = array_unique(array_values($attributes));
- if (count($uniq_vals) == 1 && is_null(current($uniq_vals)))
- {
- return;
- }
-
- $class = $this->dest_class;
- $item = new $class($attributes);
- $item->new_record = false;
- $this->value = $item;
- }
-
-}
-
-/* End of file belongsto.php */
View
29 fuel/packages/activerecord/classes/exception.php
@@ -1,29 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-namespace ActiveRecord;
-
-use Fuel;
-
-class Exception extends \Fuel_Exception {
- const RecordNotFound = 0;
- const AttributeNotFound = 1;
- const UnexpectedClass = 2;
- const ObjectFrozen = 3;
- const HasManyThroughCantAssociateNewRecords = 4;
- const MethodOrAssocationNotFound = 5;
-}
-
-
-/* End of file exception.php */
View
301 fuel/packages/activerecord/classes/hasmany.php
@@ -1,301 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-namespace ActiveRecord;
-
-use \DB;
-
-class HasMany extends Association {
-
- public function set($args, &$source)
- {
- foreach ($args as $object)
- {
- if (($source->is_new_record() || $object->is_new_record()) && isset($this->options['through']) && $this->options['through'])
- {
- throw new \Fuel_Exception("Has-many-through can't associate new records.");
- }
-
- if ( ! $object instanceof $this->dest_class)
- {
- throw new \Fuel_Exception("Expected class: {$this->dest_class}; Received: " . get_class($object));
- }
-
- if ($source->is_new_record())
- {
- /* we want to save $object after $source gets saved */
- $object->set_modified(true);
- }
- elseif ( ! isset($this->options['through']) || ! $this->options['through'])
- {
- /* since source exists, we always want to save $object */
- $object->{$this->foreign_key} = $source->{$source->get_primary_key()};
- $this->get($source);
- $object->save();
- }
- elseif ($this->options['through'])
- {
- /* $object and $source are guaranteed to exist in the DB */
- $this->get($source);
- $skip = false;
- foreach ($this->value as $val)
- {
- if ($val == $object)
- {
- $skip = true;
- }
- }
- if ( ! $skip)
- {
- $through_class = \Inflector::classify($this->options['through']);
- $fk_1 = \Inflector::foreign_key($this->dest_class);
- $fk_2 = \Inflector::foreign_key($this->source_class);
- $k1 = $object->{$object->get_primary_key()};
- $k2 = $source->{$source->get_primary_key()};
- $through = new $through_class(array($fk_1 => $k1, $fk_2 => $k2));
- $through->save();
- }
- }
- $this->get($source);
- array_push($this->value, $object);
- }
- }
-
- public function get(&$source, $force = false)
- {
- if (!is_array($this->value) || $force)
- {
- if ($source->is_new_record())
- {
- $this->value = array();
- return $this->value;
- }
- try
- {
- if (!isset($this->options['through']) || !$this->options['through'])
- {
- $collection = call_user_func_array(
- array($this->dest_class, 'find'),
- array(
- 'all',
- array(
- 'where' => array(
- array($this->foreign_key, '=', $source->{$source->get_primary_key()})
- )
- )
- )
- );
- }
- else
- {
- // TODO: $this->options['through'] is not necessarily the table name
- $collection = call_user_func_array(
- array($this->dest_class, 'find'),
- array(
- 'all',
- array(
- 'include' => $this->options['through'],
- 'where' => array(
- array($this->options['through'].'.'.$this->foreign_key, '=', $source->{$source->get_primary_key()})
- )
- )
- )
- );
- }
- }
- catch (Exeception $e)
- {
- }
- $collection = is_null($collection) ? array() : $collection;
- $this->value = $collection;
- }
- return $this->value;
- }
-
- public function get_ids(&$source, $force = false)
- {
- $ids = array();
- $objects = $this->get($source, $force);
- foreach ($objects as $object)
- {
- $ids[] = $object->{$object->get_primary_key()};
- }
- return $ids;
- }
-
- public function set_ids($ids, &$source)
- {
- /* get existing objects in relationship (force=true, don't use cache) */
- $objects = $this->get($source, true);
- $existing_ids = $this->get_ids($source, false);
- $ids_to_add = array_diff($ids, $existing_ids);
- $ids_to_remove = array_diff($existing_ids, $ids);
-
- /* add relationships that need adding */
- if (count($ids_to_add) > 0)
- {
- $objects_to_add = call_user_func_array(array($this->dest_class, 'find'), array($ids_to_add));
- $this->set($objects_to_add, $source);
- }
-
- /* remove relationships that need removing */
- if (count($ids_to_remove) > 0)
- {
- $objects_to_rem = call_user_func_array(array($this->dest_class, 'find'), array($ids_to_remove));
- $this->break_up($objects_to_rem, $source);
- }
- }
-
- /* break up the relationship
- $objects = array of $objects that are related but should no longer be
- $source = source object that we're working with
- */
-
- public function break_up($objects, &$source)
- {
- foreach ($objects as $object)
- {
- if (isset($this->options['dependent']) && $this->options['dependent'] == 'destroy')
- {
- $object->destroy();
- }
- else
- {
- if (!$this->options['through'])
- {
- $object->{$this->foreign_key} = null;
- $object->save();
- }
- else
- {
- $through_class = \Inflector::classify($this->options['through']);
- $fk_1 = \Inflector::foreign_key($this->dest_class);
- $fk_2 = \Inflector::foreign_key($this->source_class);
- $k1 = $object->{$object->get_primary_key()};
- $k2 = $source->{$source->get_primary_key()};
- $through = call_user_func_array(
- array($through_class, 'find'),
- array(
- 'first',
- array(
- 'where' => array(
- array($fk_1, '=', $k1),
- array($fk_2, '=', $k2)
- )
- )
- )
- );
- $through->destroy();
- }
- }
- }
- }
-
- public function join()
- {
- $dest_table = \Inflector::tableize($this->dest_class);
- $source_table = \Inflector::tableize($this->source_class);
- $source_inst = new $this->source_class;
- $dest_inst = new $this->dest_class;
- $columns = $dest_inst->get_columns();
-
- if (isset($dest_inst->table_name))
- {
- $dest_table = $dest_inst->table_name;
- }
-
- if ( ! isset($this->options['through']) || ! $this->options['through'])
- {
- $join = array(
- 'table' => $dest_table,
- 'type' => 'LEFT OUTER',
- 'on' => array($dest_table.'.'.$this->foreign_key, '=', $source_table.'.'.$source_inst->get_primary_key())
- );
- }
- else
- {
- $through_foreign_key = array_key_exists('through_foreign_key', $this->options)
- ? $this->options['through_foreign_key'] : \Inflector::foreign_key($this->dest_class);
- $join = array(
- array(
- 'table' => $this->options['through'],
- 'type' => 'LEFT OUTER',
- 'on' => array($this->options['through'].'.'.$this->foreign_key, '=', $source_table.'.'.$source_inst->get_primary_key())
- ),
- array(
- 'table' => $dest_table,
- 'type' => 'LEFT OUTER',
- 'on' => array($dest_table.'.'.$dest_inst->get_primary_key(), '=', $this->options['through'].'.'.$through_foreign_key)
- )
- );
- }
- return array(array($dest_table => $columns), $join);
- }
-
- public function populate_from_find($attributes)
- {
- // check if all attributes are NULL
- $uniq_vals = array_unique(array_values($attributes));
- if (count($uniq_vals) == 1 && is_null(current($uniq_vals)))
- {
- return;
- }
-
- $class = $this->dest_class;
- $item = new $class($attributes);
- $item->new_record = false;
- if (!is_array($this->value))
- {
- $this->value = array();
- }
- array_push($this->value, $item);
- }
-
- public function needs_saving()
- {
- if ( ! is_array($this->value))
- {
- return false;
- }
- else
- {
- foreach ($this->value as $val)
- {
- if ($val->is_modified() || $val->is_new_record())
- {
- return true;
- }
- }
- }
- return false;
- }
-
- public function save_as_needed($source)
- {
- foreach ($this->value as $object)
- {
- if ($object->is_modified() || $object->is_new_record())
- {
- if ( ! isset($this->options['through']) || !$this->options['through'])
- {
- $object->{$this->foreign_key} = $source->{$source->get_primary_key()};
- }
- $object->save();
- }
- }
- }
-
-}
-
-/* End of file hasmany.php */
View
96 fuel/packages/activerecord/classes/hasone.php
@@ -1,96 +0,0 @@
-<?php
-/**
- * Fuel
- *
- * Fuel is a fast, lightweight, community driven PHP5 framework.
- *
- * @package Fuel
- * @version 1.0
- * @author Fuel Development Team
- * @license MIT License
- * @copyright 2010 - 2011 Fuel Development Team
- * @link http://fuelphp.com
- */
-
-namespace ActiveRecord;
-
-use \DB;
-
-class HasOne extends Association {
-
- public function set($value, &$source)
- {
- if ($value instanceof $this->dest_class)
- {
- if ( ! $source->is_new_record())
- {
- $value->{$this->foreign_key} = $source->{$source->get_primary_key()};
- $value->save();
- }
- else
- {
- $value->{$this->foreign_key} = null;
- }
- $this->value = $value;
- }
- else
- {
- throw new \Fuel_Exception("Did not get expected class: {$this->dest_class}", Exception::UnexpectedClass);
- }
- }
-
- public function get(&$source, $force = false)
- {
- if ( ! ($this->value instanceof $this->dest_class) || $force)
- {
- if ($source->is_new_record())
- {
- return null;
- }
- $this->value = call_user_func_array(
- array($this->dest_class, 'find'),
- array('first',
- array('where' => array(
- array($this->foreign_key, '=', $source->{$source->get_primary_key()})),
- )
- )
- );
- }
- return $this->value;
- }
-
- public function join()
- {
- $dest_table = \Inflector::tableize($this->dest_class);
- $source_table = \Inflector::tableize($this->source_class);
- $source_inst = new $this->source_class;
- $dest_inst = new $this->dest_class;