From dda089bfc6a511164ce509cf04a8e4472a5ea288 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 24 Feb 2012 14:18:34 -0500 Subject: [PATCH] Moved datagrid to widgets --- src/windows/widgets/datagrid.php | 37 ++++++++++++++++++++++++++++++++ tests/core.php | 1 + tests/databases/firebird.php | 2 -- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/windows/widgets/datagrid.php diff --git a/src/windows/widgets/datagrid.php b/src/windows/widgets/datagrid.php new file mode 100644 index 0000000..ea2928e --- /dev/null +++ b/src/windows/widgets/datagrid.php @@ -0,0 +1,37 @@ +model = new GtkTreeStore(GObject::TYPE_PHP_VALUE, GObject::TYPE_STRING); + parent::__construct($this->model); + } + + function __get($key) + { + + } + + function __set($key, $val) + { + + } +} \ No newline at end of file diff --git a/tests/core.php b/tests/core.php index af31b1d..146278b 100644 --- a/tests/core.php +++ b/tests/core.php @@ -38,6 +38,7 @@ class CoreTest extends UnitTestCase { function TestPHPVersion() { $this->assertTrue(version_compare(PHP_VERSION, "5.2", "ge")); + $this->assertTrue(version_compare(PHP_VERSION, "5.4", "<")); } /** diff --git a/tests/databases/firebird.php b/tests/databases/firebird.php index 3ba8de8..6d9cb5d 100644 --- a/tests/databases/firebird.php +++ b/tests/databases/firebird.php @@ -130,6 +130,4 @@ SQL; $table_exists = in_array('create_test', $this->tables); $this->assertFalse($table_exists); } - - } \ No newline at end of file