27 Commits

Author SHA1 Message Date
Samuel Georges
c0aa03a400 Create an error making trait
Widgets can throw fatal errors too
2017-06-11 22:38:03 +10:00
Samuel Georges
f020479b91 Move session logic to SessionMaker
This allows controller behaviors to access session utils
2017-06-10 04:58:29 +10:00
Samuel Georges
0a2b343047 Simplify system events
This pipes all event calls through a new EventEmitter trait, which substitutes the October Rain event emitter trait. The view event has been moved to this trait also.
Pass some variables by reference to allow multi-extension.
Fixes #2420
2016-12-10 09:02:06 +11:00
Samuel Georges
bcff1d3ecd Widget classes are now extendable
Fixes #2078
Fixes #1586
2016-06-15 17:10:46 +10:00
Samuel Georges
87a4de40de Address serialize/unserialize issues
This will require a cache clear for the combiner
Ref https://davidwalsh.name/php-serialize-unserialize-issues
2016-04-16 08:22:31 +10:00
Joshua Wilson
6f3d7a58f2 Phpdoc cleanup for System\Traits
removed in WidgetMaker trait

phpdoc cleanup of backend traits and classes

Minor fix for cases when file is not found
2016-02-13 14:06:50 +11:00
Samuel Georges
668457b4e6 Updated deprecated references
Str::evalHtmlId -> October\Rain\Html\Helper::nameToId
Str::evalHtmlArray -> October\Rain\Html\Helper::nameToArray
Str::stripHtml -> October\Rain\Html\Helper::strip
Str::limitHtml -> October\Rain\Html\Helper::limit
Str::cleanHtml -> October\Rain\Html\Helper::clean
2015-03-07 12:48:39 +11:00
Samuel Georges
507bfab768 !!! *BREAKING*: Form widget base class no longer takes a model as the 2nd argument, it should be passed as model in the configuration instead. 2015-03-06 20:37:05 +11:00
Samuel Georges
85c47c4e01 public -> protected $defaultAlias 2015-02-28 12:43:53 +11:00
Samuel Georges
932a40a025 Streamline the process of filling a widget with its config options 2015-02-28 12:12:22 +11:00
Samuel Georges
5784417862 Document widget accepted config
These definitions don't serve a function other than helping developers
2015-02-28 11:50:27 +11:00
Samuel Georges
7145aac457 Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges
7c1de4f728 Add export action to ListController behavior 2015-01-27 20:02:20 +11:00
gergo85
f0005d196b Cleanup
Remove whitespaces.
2015-01-03 12:41:23 +01:00
Stefan Talen
7dc24cfff1 Updating backend/classes 2014-10-10 23:12:50 +02:00
Sam Georges
bf47eb94ed Str::getRealClass -> class_basename 2014-09-29 13:12:34 +10:00
Sam Georges
fbf5cbbb67 Moved ViewMaker trait to live under system, it can be useful for Models too. 2014-09-29 12:19:19 +10:00
Sam Georges
766875fac5 Switch to evalHtmlId helper 2014-09-06 21:57:23 +10:00
Sam Georges
c6aca8cd18 Align [] replacement with FormField 2014-07-28 08:23:22 +10:00
flynsarmy
10d30fcd9e Spaces, not tabs 2014-07-27 22:04:24 +10:00
flynsarmy
1693d2bed5 Don't allow [ or ] characters in field IDs 2014-07-27 21:55:54 +10:00
Sam Georges
c3c1e1b6f6 Widgets now no longer include their alias in getId() if it matches the default alias 2014-06-20 19:29:39 +10:00
Sam Georges
294961cf8a Refactor how the Form widget manages fields.
Widgets no longer need to pass configuration through "options".
2014-06-19 21:43:00 +10:00
Sam Georges
f7373da55e Protect controller again 2014-05-18 15:53:47 +10:00
Sam Georges
5484f67c5a Make controller accessible for extensibility 2014-05-18 13:59:44 +10:00
Pascal Borreli
459c8e0cfa Fixed typos 2014-05-17 18:08:01 +02:00
Sam Georges
71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00