diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:16:00 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:16:00 +0000 |
| commit | fcd8739f49ce231f002604d31068087daa6e2fb7 (patch) | |
| tree | b5503fe3e7ebe5e336be5553b187e4bceade2902 /bindings/php5/php_code.py | |
| parent | 914a176d99e7686cb3d0207a4d1429bf6c944cc5 (diff) | |
| download | lasso-fcd8739f49ce231f002604d31068087daa6e2fb7.tar.gz lasso-fcd8739f49ce231f002604d31068087daa6e2fb7.tar.xz lasso-fcd8739f49ce231f002604d31068087daa6e2fb7.zip | |
Bindings: simplify GList handling
Diffstat (limited to 'bindings/php5/php_code.py')
| -rw-r--r-- | bindings/php5/php_code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/php5/php_code.py b/bindings/php5/php_code.py index 64439778..3530acf8 100644 --- a/bindings/php5/php_code.py +++ b/bindings/php5/php_code.py @@ -196,7 +196,7 @@ function lassoRegisterIdWsf2DstService($prefix, $href) { klass.name, mname) elif mtype in ('GList*', 'GHashTable*'): print >> self.fd, ' $array = %s_%s_get($this->_cptr);' % (klass.name, mname) - if self.is_object(options.get('elem_type')): + if self.is_object(options.get('element-type')): print >> self.fd, ' $obj_array = array();' if mtype == 'GList*': print >> self.fd, ' foreach ($array as $item) {' @@ -215,7 +215,7 @@ function lassoRegisterIdWsf2DstService($prefix, $href) { print >> self.fd, ' protected function set_%s($value) {' % mname if self.is_object(mtype): print >> self.fd, ' %s_%s_set($this->_cptr, $value->_cptr);' % (klass.name, mname) - elif mtype in ('GList*', 'GHashTable*') and self.is_object(options.get('elem_type')): + elif mtype in ('GList*', 'GHashTable*') and self.is_object(options.get('element-type')): print >> self.fd, ' $array = array();' # FIXME: setting an array to NULL should really set it to NULL and not to an empty array print >> self.fd, ' if (!is_null($value)) {' |
