Помогаем работать и общаться

Без названия

Публично отправил Гость в 16:09 22-02-2012 с типом text и размером 0.89 Kb
Хранить: Вечно, просмотров: 30
В буфер! | Скачать!

  1. #include <php.h>
  2.  
  3. #include "control.h"
  4.  
  5. zend_class_entry *ce_control;
  6.  
  7. static function_entry control_methods[] = {
  8.   PHP_ME(Control, __construct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
  9.   PHP_ME(Control, render, NULL, ZEND_ACC_PUBLIC)
  10.   {NULL, NULL, NULL}
  11. };
  12.  
  13. void aleph_init_control(TSRMLS_D) {
  14.   zend_class_entry ce;
  15.  
  16.   INIT_CLASS_ENTRY(ce, "Control", control_methods);
  17.   ce_control = zend_register_internal_class(&ce TSRMLS_CC);
  18.  
  19.   zend_declare_property(ce_control, "attributes", strlen("attributes"), NULL, ZEND_ACC_PROTECTED TSRMLS_CC);
  20.   zend_declare_property(ce_control, "properties", strlen("properties"), NULL, ZEND_ACC_PROTECTED TSRMLS_CC);
  21. }
  22.  
  23. PHP_METHOD(Control, __construct) {
  24.                                                                                                                                                
  25. }
  26.  
  27. PHP_METHOD(Control, render) {   
  28.        
  29. }
  30.  
  31.  
  32.  

Комментируй
Исходный текст