Skip to content

Instantly share code, notes, and snippets.

View gergoerdosi's full-sized avatar

Gergő Erdősi gergoerdosi

  • Budapest, Hungary
View GitHub Profile
@gergoerdosi
gergoerdosi / gist:1009389
Created June 5, 2011 20:32
Patch to allow array value in KDatabaseTableAbstract->select()
Index: code/libraries/koowa/database/table/abstract.php
===================================================================
--- code/libraries/koowa/database/table/abstract.php (revision 3441)
+++ code/libraries/koowa/database/table/abstract.php (working copy)
@@ -30,35 +30,35 @@
* @var string
*/
protected $_name;
-
+
@gergoerdosi
gergoerdosi / gist:1009385
Created June 5, 2011 20:29
Patch to allow array value in KDatabaseRowsetAbstract->find()
Index: code/libraries/koowa/database/rowset/abstract.php
===================================================================
--- code/libraries/koowa/database/rowset/abstract.php (revision 3441)
+++ code/libraries/koowa/database/rowset/abstract.php (working copy)
@@ -26,14 +26,14 @@
* @var string
*/
protected $_identity_column;
-
+
@gergoerdosi
gergoerdosi / gist:992805
Created May 26, 2011 09:01
Patch to fix typos in Nooku Framework
Index: code/libraries/koowa/event/listener.php
===================================================================
--- code/libraries/koowa/event/listener.php (revision 3368)
+++ code/libraries/koowa/event/listener.php (working copy)
@@ -23,14 +23,14 @@
* @var array
*/
private $__event_handlers;
-
+
@gergoerdosi
gergoerdosi / gist:988391
Created May 24, 2011 09:05
Patch to fix KModelAbstract and KConfig deep cloning
Index: code/libraries/koowa/config/config.php
===================================================================
--- code/libraries/koowa/config/config.php (revision 3321)
+++ code/libraries/koowa/config/config.php (working copy)
@@ -10,7 +10,7 @@
/**
* Config Class
- *
+ *
@gergoerdosi
gergoerdosi / gist:987048
Created May 23, 2011 16:59
Patch to allow setting the offset manually
Index: table.php
--- table.php Base (BASE)
+++ table.php Locally Modified (Based On LOCAL)
@@ -83,10 +83,16 @@
*/
public function set( $property, $value = null )
{
+ if(is_object($property)) {
+ $property = (array) KConfig::toData($property);
+ }
@gergoerdosi
gergoerdosi / gist:984961
Created May 21, 2011 22:32
Patch to unset properties on state change
Index: abstract.php
--- abstract.php Base (BASE)
+++ abstract.php Locally Modified (Based On LOCAL)
@@ -107,16 +107,41 @@
*/
public function set( $property, $value = null )
{
+ $changed = false;
+
if(is_object($property)) {
@gergoerdosi
gergoerdosi / gist:981703
Created May 19, 2011 20:46
Grid _createURL() patch
Index: code/libraries/koowa/template/helper/grid.php
===================================================================
--- code/libraries/koowa/template/helper/grid.php (revision 3312)
+++ code/libraries/koowa/template/helper/grid.php (working copy)
@@ -40,16 +40,16 @@
</span>';
}
else
- {
+ {
@gergoerdosi
gergoerdosi / gist:951763
Created May 2, 2011 15:17
Overlay patch
diff --git a/code/libraries/koowa/template/helper/behavior.php b/code/libraries/koowa/template/helper/behavior.php
index bacd6c1..80de659 100644
--- a/code/libraries/koowa/template/helper/behavior.php
+++ b/code/libraries/koowa/template/helper/behavior.php
@@ -21,24 +21,24 @@ class KTemplateHelperBehavior extends KTemplateHelperAbstract
{
/*
* Array which holds a list of loaded javascript libraries
- *
+ *