Castable.c

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006-2007 by Konstantin V. Arkhipov                     *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU Lesser General Public License as        *
00006  *   published by the Free Software Foundation; either version 3 of the    *
00007  *   License, or (at your option) any later version.                       *
00008  *                                                                         *
00009  ***************************************************************************/
00010 /* $Id: Castable.c 4687 2007-12-09 18:57:18Z voxus $ */
00011 
00012 #include "onphp_core.h"
00013 
00014 #include "core/OSQL/Castable.h"
00015 
00016 ONPHP_METHOD(Castable, castTo)
00017 {
00018     zval *cast;
00019     
00020     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &cast) == FAILURE) {
00021         WRONG_PARAM_COUNT;
00022     }
00023 
00024     ONPHP_UPDATE_PROPERTY(getThis(), "cast", cast);
00025 
00026     RETURN_ZVAL(getThis(), 1, 0);
00027 }
00028 
00029 static ONPHP_ARGINFO_ONE;
00030 
00031 zend_function_entry onphp_funcs_Castable[] = {
00032     ONPHP_ME(Castable, castTo, arginfo_one, ZEND_ACC_PUBLIC)
00033     {NULL, NULL, NULL}
00034 };

Generated on Sun Dec 9 21:56:23 2007 for onPHP by  doxygen 1.5.4