Lines Matching refs:period_obj

1511 static void initialize_date_period_properties(php_period_obj *period_obj)  in initialize_date_period_properties()  argument
1515 if (UNEXPECTED(!period_obj->std.properties)) { in initialize_date_period_properties()
1516 rebuild_object_properties(&period_obj->std); in initialize_date_period_properties()
1519 create_date_period_datetime(period_obj->start, period_obj->start_ce, &zv); in initialize_date_period_properties()
1520 write_date_period_property(&period_obj->std, "start", sizeof("start") - 1, &zv); in initialize_date_period_properties()
1522 create_date_period_datetime(period_obj->current, period_obj->start_ce, &zv); in initialize_date_period_properties()
1523 write_date_period_property(&period_obj->std, "current", sizeof("current") - 1, &zv); in initialize_date_period_properties()
1525 create_date_period_datetime(period_obj->end, period_obj->start_ce, &zv); in initialize_date_period_properties()
1526 write_date_period_property(&period_obj->std, "end", sizeof("end") - 1, &zv); in initialize_date_period_properties()
1528 create_date_period_interval(period_obj->interval, &zv); in initialize_date_period_properties()
1529 write_date_period_property(&period_obj->std, "interval", sizeof("interval") - 1, &zv); in initialize_date_period_properties()
1531 ZVAL_LONG(&zv, (zend_long) period_obj->recurrences); in initialize_date_period_properties()
1532 write_date_period_property(&period_obj->std, "recurrences", sizeof("recurrences") - 1, &zv); in initialize_date_period_properties()
1534 ZVAL_BOOL(&zv, period_obj->include_start_date); in initialize_date_period_properties()
1535 …write_date_period_property(&period_obj->std, "include_start_date", sizeof("include_start_date") - … in initialize_date_period_properties()
1537 ZVAL_BOOL(&zv, period_obj->include_end_date); in initialize_date_period_properties()
1538 …write_date_period_property(&period_obj->std, "include_end_date", sizeof("include_end_date") - 1, &… in initialize_date_period_properties()
5491 static void date_period_object_to_hash(php_period_obj *period_obj, HashTable *props) in date_period_object_to_hash() argument
5495 create_date_period_datetime(period_obj->start, period_obj->start_ce, &zv); in date_period_object_to_hash()
5498 create_date_period_datetime(period_obj->current, period_obj->start_ce, &zv); in date_period_object_to_hash()
5501 create_date_period_datetime(period_obj->end, period_obj->start_ce, &zv); in date_period_object_to_hash()
5504 create_date_period_interval(period_obj->interval, &zv); in date_period_object_to_hash()
5508 ZVAL_LONG(&zv, (zend_long) period_obj->recurrences); in date_period_object_to_hash()
5511 ZVAL_BOOL(&zv, period_obj->include_start_date); in date_period_object_to_hash()
5514 ZVAL_BOOL(&zv, period_obj->include_end_date); in date_period_object_to_hash()
5518 static bool php_date_period_initialize_from_hash(php_period_obj *period_obj, HashTable *myht) /* {{… in php_date_period_initialize_from_hash() argument
5534 if (period_obj->start != NULL) { in php_date_period_initialize_from_hash()
5535 timelib_time_dtor(period_obj->start); in php_date_period_initialize_from_hash()
5537 period_obj->start = timelib_time_clone(date_obj->time); in php_date_period_initialize_from_hash()
5538 period_obj->start_ce = Z_OBJCE_P(ht_entry); in php_date_period_initialize_from_hash()
5556 if (period_obj->end != NULL) { in php_date_period_initialize_from_hash()
5557 timelib_time_dtor(period_obj->end); in php_date_period_initialize_from_hash()
5559 period_obj->end = timelib_time_clone(date_obj->time); in php_date_period_initialize_from_hash()
5577 if (period_obj->current != NULL) { in php_date_period_initialize_from_hash()
5578 timelib_time_dtor(period_obj->current); in php_date_period_initialize_from_hash()
5580 period_obj->current = timelib_time_clone(date_obj->time); in php_date_period_initialize_from_hash()
5598 if (period_obj->interval != NULL) { in php_date_period_initialize_from_hash()
5599 timelib_rel_time_dtor(period_obj->interval); in php_date_period_initialize_from_hash()
5601 period_obj->interval = timelib_rel_time_clone(interval_obj->diff); in php_date_period_initialize_from_hash()
5612 period_obj->recurrences = Z_LVAL_P(ht_entry); in php_date_period_initialize_from_hash()
5620 period_obj->include_start_date = (Z_TYPE_P(ht_entry) == IS_TRUE); in php_date_period_initialize_from_hash()
5628 period_obj->include_end_date = (Z_TYPE_P(ht_entry) == IS_TRUE); in php_date_period_initialize_from_hash()
5633 period_obj->initialized = 1; in php_date_period_initialize_from_hash()
5635 initialize_date_period_properties(period_obj); in php_date_period_initialize_from_hash()
5643 php_period_obj *period_obj; in PHP_METHOD() local
5654 period_obj = Z_PHPPERIOD_P(return_value); in PHP_METHOD()
5655 if (!php_date_period_initialize_from_hash(period_obj, myht)) { in PHP_METHOD()
5666 php_period_obj *period_obj; in PHP_METHOD() local
5671 period_obj = Z_PHPPERIOD_P(object); in PHP_METHOD()
5672 DATE_CHECK_INITIALIZED(period_obj->start, Z_OBJCE_P(object)); in PHP_METHOD()
5676 date_period_object_to_hash(period_obj, myht); in PHP_METHOD()
5678 add_common_properties(myht, &period_obj->std); in PHP_METHOD()
5720 php_period_obj *period_obj; in PHP_METHOD() local
5728 period_obj = Z_PHPPERIOD_P(object); in PHP_METHOD()
5731 if (!php_date_period_initialize_from_hash(period_obj, myht)) { in PHP_METHOD()
5743 php_period_obj *period_obj; in PHP_METHOD() local
5748 period_obj = Z_PHPPERIOD_P(object); in PHP_METHOD()
5752 if (!php_date_period_initialize_from_hash(period_obj, myht)) { in PHP_METHOD()