void uvExtension::_initUVIdleClass() { HHVM_ME(UVIdle, __construct); HHVM_ME(UVIdle, __destruct); HHVM_ME(UVIdle, start); HHVM_ME(UVIdle, stop); Native::registerNativeDataInfo<UVNativeData>(s_uvidle.get()); }
void IntlExtension::initIterator() { HHVM_ME(IntlIterator, current); HHVM_ME(IntlIterator, key); HHVM_ME(IntlIterator, next); HHVM_ME(IntlIterator, rewind); HHVM_ME(IntlIterator, valid); loadSystemlib("icu_iterator"); }
void eventExtension::_initEventConfigClass() { HHVM_ME(EventConfig, __construct); HHVM_ME(EventConfig, __destruct); HHVM_ME(EventConfig, avoidMethod); HHVM_ME(EventConfig, requireFeatures); HHVM_ME(EventConfig, setMaxDispatchInterval); }
void moduleInit() override { HHVM_ME(IntervalTimer, __construct); HHVM_ME(IntervalTimer, start); HHVM_ME(IntervalTimer, stop); Native::registerNativeDataInfo<IntervalTimer>( IntervalTimer::c_ClassName.get(), Native::NDIFlags::NO_SWEEP); loadSystemlib("intervaltimer"); }
void moduleInit() override { HHVM_ME(Generator, getOrigFuncName); HHVM_ME(Generator, getCalledClass); Native::registerNativeDataInfo<Generator>( Generator::s_className.get(), Native::NDIFlags::NO_SWEEP); loadSystemlib("generator"); Generator::s_class = Unit::lookupClass(Generator::s_className.get()); assert(Generator::s_class); }
void IntlExtension::initIterator() { HHVM_ME(IntlIterator, current); HHVM_ME(IntlIterator, key); HHVM_ME(IntlIterator, next); HHVM_ME(IntlIterator, rewind); HHVM_ME(IntlIterator, valid); Native::registerNativeDataInfo<IntlIterator>(s_IntlIterator.get()); loadSystemlib("icu_iterator"); }
void moduleInit() override { HHVM_ME(MCRouter, __construct); HHVM_NAMED_ME(MCRouter, get, mcr_str<mc_op_get>); HHVM_NAMED_ME(MCRouter, gets, mcr_str<mc_op_gets>); HHVM_NAMED_ME(MCRouter, add, mcr_set<mc_op_add>); HHVM_NAMED_ME(MCRouter, set, mcr_set<mc_op_set>); HHVM_NAMED_ME(MCRouter, replace, mcr_set<mc_op_replace>); HHVM_NAMED_ME(MCRouter, prepend, mcr_aprepend<mc_op_prepend>); HHVM_NAMED_ME(MCRouter, append, mcr_aprepend<mc_op_append>); HHVM_NAMED_ME(MCRouter, incr, mcr_str_delta<mc_op_incr>); HHVM_NAMED_ME(MCRouter, decr, mcr_str_delta<mc_op_decr>); HHVM_NAMED_ME(MCRouter, del, mcr_str<mc_op_delete>); HHVM_NAMED_ME(MCRouter, flushAll, mcr_int<mc_op_flushall>); HHVM_NAMED_ME(MCRouter, version, mcr_void<mc_op_version>); HHVM_ME(MCRouter, cas); Native::registerNativeDataInfo<MCRouter>(s_MCRouter.get()); HHVM_STATIC_ME(MCRouter, getOpName); HHVM_STATIC_ME(MCRouter, getResultName); std::string opname("mc_op_"); for (int i = 0; i < mc_nops; ++i) { std::string name; name = opname + mc_op_to_string((mc_op_t)i); // mcrouter defines op names as foo-bar, // but PHP wants constants like foo_bar for (int j = opname.size(); j < name.size(); ++j) { if (name[j] == '-') { name[j] = '_'; } } Native::registerClassConstant<KindOfInt64>( s_MCRouter.get(), makeStaticString(name), i); } for (int i = 0; i < mc_nres; ++i) { Native::registerClassConstant<KindOfInt64>( s_MCRouter.get(), makeStaticString(mc_res_to_string((mc_res_t)i)), i); } loadSystemlib(); }
void CollectionsExtension::initSet() { HHVM_ME(SetIterator, current); HHVM_ME(SetIterator, key); HHVM_ME(SetIterator, valid); HHVM_ME(SetIterator, next); HHVM_ME(SetIterator, rewind); Native::registerNativeDataInfo<SetIterator>( s_SetIterator.get(), Native::NDIFlags::NO_SWEEP ); loadSystemlib("collections-set"); }
void YafExtension::_initYafRequestHttpClass() { HHVM_ME(Yaf_Request_Http, getQuery); HHVM_ME(Yaf_Request_Http, getRequest); HHVM_ME(Yaf_Request_Http, getPost); HHVM_ME(Yaf_Request_Http, getCookie); HHVM_ME(Yaf_Request_Http, getFiles); HHVM_ME(Yaf_Request_Http, get); HHVM_ME(Yaf_Request_Http, isXmlHttpRequest); HHVM_ME(Yaf_Request_Http, __construct); HHVM_ME(Yaf_Request_Http, __clone); }
void moduleInit() override { HHVM_ME(Example2_File, __construct); HHVM_ME(Example2_File, read); HHVM_ME(Example2_File, tell); HHVM_ME(Example2_File, seek); #define X(w) \ Native::registerClassConstant<KindOfInt64>(s_Example2_File.get(), \ String::FromCStr(#w).get(), w); X(SEEK_SET); X(SEEK_CUR); X(SEEK_END); #undef X Native::registerNativeDataInfo<Example2_File>(s_Example2_File.get()); loadSystemlib(); }
void IntlExtension::initResourceBundle() { HHVM_ME(ResourceBundle, __construct); HHVM_ME(ResourceBundle, count); HHVM_ME(ResourceBundle, getErrorCode); HHVM_ME(ResourceBundle, getErrorMessage); HHVM_ME(ResourceBundle, get); HHVM_STATIC_ME(ResourceBundle, getLocales); HHVM_ME(ResourceBundle, current); HHVM_ME(ResourceBundle, key); HHVM_ME(ResourceBundle, next); HHVM_ME(ResourceBundle, rewind); HHVM_ME(ResourceBundle, valid); Native::registerNativeDataInfo<ResourceBundle>(s_ResourceBundle.get()); loadSystemlib("icu_rsrc_bundle"); }
void IntlExtension::initTimeZone() { DISP_CONST(SHORT); DISP_CONST(LONG); #if U_ICU_VERSION_MAJOR_NUM * 10 + U_ICU_VERSION_MINOR_NUM >= 44 DISP_CONST(SHORT_GENERIC); DISP_CONST(LONG_GENERIC); DISP_CONST(SHORT_GMT); DISP_CONST(LONG_GMT); DISP_CONST(SHORT_COMMONLY_USED); DISP_CONST(GENERIC_LOCATION); #endif // ICU 4.4 HHVM_STATIC_ME(IntlTimeZone, countEquivalentIDs); HHVM_STATIC_ME(IntlTimeZone, createDefault); HHVM_STATIC_ME(IntlTimeZone, createEnumeration); HHVM_STATIC_ME(IntlTimeZone, createTimeZone); HHVM_STATIC_ME(IntlTimeZone, getCanonicalID); HHVM_ME(IntlTimeZone, getDisplayName); HHVM_ME(IntlTimeZone, getDSTSavings); HHVM_STATIC_ME(IntlTimeZone, getEquivalentID); HHVM_ME(IntlTimeZone, getErrorCode); HHVM_ME(IntlTimeZone, getErrorMessage); HHVM_STATIC_ME(IntlTimeZone, getGMT); HHVM_ME(IntlTimeZone, getID); HHVM_ME(IntlTimeZone, getOffset); HHVM_ME(IntlTimeZone, getRawOffset); HHVM_STATIC_ME(IntlTimeZone, getTZDataVersion); HHVM_ME(IntlTimeZone, hasSameRules); HHVM_ME(IntlTimeZone, useDaylightTime); #if U_ICU_VERSION_MAJOR_NUM * 10 + U_ICU_VERSION_MINOR_NUM >= 48 CAL_CONST(TYPE_ANY); CAL_CONST(TYPE_CANONICAL); CAL_CONST(TYPE_CANONICAL_LOCATION); HHVM_STATIC_ME(IntlTimeZone, createTimeZoneIDEnumeration); HHVM_STATIC_ME(IntlTimeZone, getRegion); #endif // ICU 4.8 #if U_ICU_VERSION_MAJOR_NUM * 10 + U_ICU_VERSION_MINOR_NUM >= 49 HHVM_STATIC_ME(IntlTimeZone, getUnknown); #endif // ICU 4.9 Native::registerNativeDataInfo<IntlTimeZone>(s_IntlTimeZone.get()); loadSystemlib("icu_timezone"); }
void uvExtension::_initUVUdpClass() { HHVM_ME(UVUdp, __construct); HHVM_ME(UVUdp, bind); HHVM_ME(UVUdp, close); HHVM_ME(UVUdp, setCallback); HHVM_ME(UVUdp, sendTo); HHVM_ME(UVUdp, getSockname); HHVM_ME(UVUdp, getSockport); Native::registerNativeDataInfo<UVUdpData>(s_uvudp.get()); }
void IntlExtension::initMessageFormatter() { HHVM_ME(MessageFormatter, __construct); HHVM_ME(MessageFormatter, format); HHVM_ME(MessageFormatter, getErrorCode); HHVM_ME(MessageFormatter, getErrorMessage); HHVM_ME(MessageFormatter, getLocale); HHVM_ME(MessageFormatter, getPattern); HHVM_ME(MessageFormatter, parse); HHVM_ME(MessageFormatter, setPattern); Native::registerNativeDataInfo<MessageFormatter>(s_MessageFormatter.get()); loadSystemlib("icu_msg_fmt"); }
void IntlExtension::initUcsDet() { HHVM_ME(EncodingDetector, setText); HHVM_ME(EncodingDetector, setDeclaredEncoding); HHVM_ME(EncodingDetector, detect); HHVM_ME(EncodingDetector, detectAll); HHVM_ME(EncodingMatch, isValid); HHVM_ME(EncodingMatch, getEncoding); HHVM_ME(EncodingMatch, getConfidence); HHVM_ME(EncodingMatch, getLanguage); HHVM_ME(EncodingMatch, getUTF8); Native::registerNativeDataInfo<EncodingDetector>(s_EncodingDetector.get()); Native::registerNativeDataInfo<EncodingMatch>(s_EncodingMatch.get()); loadSystemlib("icu_ucsdet"); }
void IntlExtension::initTransliterator() { HHVM_ME(Transliterator, __init); HHVM_ME(Transliterator, __createInverse); HHVM_ME(Transliterator, getErrorCode); HHVM_ME(Transliterator, getErrorMessage); HHVM_ME(Transliterator, getId); HHVM_STATIC_ME(Transliterator, listIDs); HHVM_ME(Transliterator, transliterate); Native::registerClassConstant<KindOfInt64> (s_Transliterator.get(), s_FORWARD.get(), UTRANS_FORWARD); Native::registerClassConstant<KindOfInt64> (s_Transliterator.get(), s_REVERSE.get(), UTRANS_REVERSE); Native::registerNativeDataInfo<Transliterator>(s_Transliterator.get()); loadSystemlib("icu_transliterator"); }
void eventExtension::_initEventHttpConnectionClass() { HHVM_ME(HttpConnection, __construct); }
void IntlExtension::initNumberFormatter() { HHVM_ME(NumberFormatter, __construct); HHVM_ME(NumberFormatter, formatCurrency); HHVM_ME(NumberFormatter, format); HHVM_ME(NumberFormatter, getAttribute); HHVM_ME(NumberFormatter, getErrorCode); HHVM_ME(NumberFormatter, getErrorMessage); HHVM_ME(NumberFormatter, getLocale); HHVM_ME(NumberFormatter, getPattern); HHVM_ME(NumberFormatter, getSymbol); HHVM_ME(NumberFormatter, getTextAttribute); HHVM_ME(NumberFormatter, parseCurrency); HHVM_ME(NumberFormatter, parse); HHVM_ME(NumberFormatter, setAttribute); HHVM_ME(NumberFormatter, setPattern); HHVM_ME(NumberFormatter, setSymbol); HHVM_ME(NumberFormatter, setTextAttribute); #define NUMFMT_CONST(n) \ Native::registerClassConstant<KindOfInt64>(s_NumberFormatter.get(), \ s_NumberFormatter_ ## n .get(), \ q_NumberFormatter_ ## n) NUMFMT_CONST(PATTERN_DECIMAL); NUMFMT_CONST(DECIMAL); NUMFMT_CONST(CURRENCY); NUMFMT_CONST(PERCENT); NUMFMT_CONST(SCIENTIFIC); NUMFMT_CONST(SPELLOUT); NUMFMT_CONST(ORDINAL); NUMFMT_CONST(DURATION); NUMFMT_CONST(PATTERN_RULEBASED); NUMFMT_CONST(IGNORE); NUMFMT_CONST(DEFAULT_STYLE); NUMFMT_CONST(ROUND_CEILING); NUMFMT_CONST(ROUND_FLOOR); NUMFMT_CONST(ROUND_DOWN); NUMFMT_CONST(ROUND_UP); NUMFMT_CONST(ROUND_HALFEVEN); NUMFMT_CONST(ROUND_HALFDOWN); NUMFMT_CONST(ROUND_HALFUP); NUMFMT_CONST(PAD_BEFORE_PREFIX); NUMFMT_CONST(PAD_AFTER_PREFIX); NUMFMT_CONST(PAD_BEFORE_SUFFIX); NUMFMT_CONST(PAD_AFTER_SUFFIX); NUMFMT_CONST(PARSE_INT_ONLY); NUMFMT_CONST(GROUPING_USED); NUMFMT_CONST(DECIMAL_ALWAYS_SHOWN); NUMFMT_CONST(MAX_INTEGER_DIGITS); NUMFMT_CONST(MIN_INTEGER_DIGITS); NUMFMT_CONST(INTEGER_DIGITS); NUMFMT_CONST(MAX_FRACTION_DIGITS); NUMFMT_CONST(MIN_FRACTION_DIGITS); NUMFMT_CONST(FRACTION_DIGITS); NUMFMT_CONST(MULTIPLIER); NUMFMT_CONST(GROUPING_SIZE); NUMFMT_CONST(ROUNDING_MODE); NUMFMT_CONST(ROUNDING_INCREMENT); NUMFMT_CONST(FORMAT_WIDTH); NUMFMT_CONST(PADDING_POSITION); NUMFMT_CONST(SECONDARY_GROUPING_SIZE); NUMFMT_CONST(SIGNIFICANT_DIGITS_USED); NUMFMT_CONST(MIN_SIGNIFICANT_DIGITS); NUMFMT_CONST(MAX_SIGNIFICANT_DIGITS); NUMFMT_CONST(LENIENT_PARSE); NUMFMT_CONST(POSITIVE_PREFIX); NUMFMT_CONST(POSITIVE_SUFFIX); NUMFMT_CONST(NEGATIVE_PREFIX); NUMFMT_CONST(NEGATIVE_SUFFIX); NUMFMT_CONST(PADDING_CHARACTER); NUMFMT_CONST(CURRENCY_CODE); NUMFMT_CONST(DEFAULT_RULESET); NUMFMT_CONST(PUBLIC_RULESETS); NUMFMT_CONST(DECIMAL_SEPARATOR_SYMBOL); NUMFMT_CONST(GROUPING_SEPARATOR_SYMBOL); NUMFMT_CONST(PATTERN_SEPARATOR_SYMBOL); NUMFMT_CONST(PERCENT_SYMBOL); NUMFMT_CONST(ZERO_DIGIT_SYMBOL); NUMFMT_CONST(DIGIT_SYMBOL); NUMFMT_CONST(MINUS_SIGN_SYMBOL); NUMFMT_CONST(PLUS_SIGN_SYMBOL); NUMFMT_CONST(CURRENCY_SYMBOL); NUMFMT_CONST(INTL_CURRENCY_SYMBOL); NUMFMT_CONST(MONETARY_SEPARATOR_SYMBOL); NUMFMT_CONST(EXPONENTIAL_SYMBOL); NUMFMT_CONST(PERMILL_SYMBOL); NUMFMT_CONST(PAD_ESCAPE_SYMBOL); NUMFMT_CONST(INFINITY_SYMBOL); NUMFMT_CONST(NAN_SYMBOL); NUMFMT_CONST(SIGNIFICANT_DIGIT_SYMBOL); NUMFMT_CONST(MONETARY_GROUPING_SEPARATOR_SYMBOL); NUMFMT_CONST(TYPE_DEFAULT); NUMFMT_CONST(TYPE_INT32); NUMFMT_CONST(TYPE_INT64); NUMFMT_CONST(TYPE_DOUBLE); NUMFMT_CONST(TYPE_CURRENCY); #undef NUMFMT_CONST Native::registerNativeDataInfo<NumberFormatter>(s_NumberFormatter.get()); loadSystemlib("icu_num_fmt"); }
void moduleLoad(const IniSetting::Map& /*ini*/, Hdf /*config*/) override { HHVM_ME(DirectoryIterator, hh_readdir); HHVM_ME(GlobIterator, count); }
void YafExtension::_initYafMapRouterClass() { HHVM_ME(Yaf_Route_Map, __construct); HHVM_ME(Yaf_Route_Map, route); }
void IntlExtension::initCalendar() { FIELD_CONST(ERA); FIELD_CONST(YEAR); FIELD_CONST(MONTH); FIELD_CONST(WEEK_OF_YEAR); FIELD_CONST(WEEK_OF_MONTH); FIELD_CONST(DATE); FIELD_CONST(DAY_OF_YEAR); FIELD_CONST(DAY_OF_WEEK); FIELD_CONST(DAY_OF_WEEK_IN_MONTH); FIELD_CONST(AM_PM); FIELD_CONST(HOUR); FIELD_CONST(HOUR_OF_DAY); FIELD_CONST(MINUTE); FIELD_CONST(SECOND); FIELD_CONST(MILLISECOND); FIELD_CONST(ZONE_OFFSET); FIELD_CONST(DST_OFFSET); FIELD_CONST(YEAR_WOY); FIELD_CONST(DOW_LOCAL); FIELD_CONST(EXTENDED_YEAR); FIELD_CONST(JULIAN_DAY); FIELD_CONST(MILLISECONDS_IN_DAY); FIELD_CONST(IS_LEAP_MONTH); FIELD_CONST(FIELD_COUNT); FIELD_CONST(DAY_OF_MONTH); DOW_CONST(SUNDAY); DOW_CONST(MONDAY); DOW_CONST(TUESDAY); DOW_CONST(WEDNESDAY); DOW_CONST(THURSDAY); DOW_CONST(FRIDAY); DOW_CONST(SATURDAY); #if ((U_ICU_VERSION_MAJOR_NUM * 100) + U_ICU_VERSION_MINOR_NUM) >= 404 TYPE_CONST(WEEKDAY); TYPE_CONST(WEEKEND); TYPE_CONST(WEEKEND_CEASE); // Not a typo: Zend defines OFFSET as ONSET Native::registerClassConstant<KindOfInt64>( s_IntlCalendar.get(), makeStaticString("DOW_TYPE_WEEKEND_OFFSET"), UCAL_WEEKEND_ONSET); #endif #if ((U_ICU_VERSION_MAJOR_NUM * 100) + U_ICU_VERSION_MINOR_NUM) >= 409 CAL_CONST(WALLTIME_FIRST); CAL_CONST(WALLTIME_LAST); CAL_CONST(WALLTIME_NEXT_VALID); #endif HHVM_ME(IntlCalendar, add); HHVM_ME(IntlCalendar, after); HHVM_ME(IntlCalendar, before); HHVM_ME(IntlCalendar, clear); HHVM_STATIC_ME(IntlCalendar, createInstance); HHVM_ME(IntlCalendar, equals); HHVM_ME(IntlCalendar, fieldDifference); HHVM_ME(IntlCalendar, get); HHVM_ME(IntlCalendar, getActualMaximum); HHVM_ME(IntlCalendar, getActualMinimum); HHVM_STATIC_ME(IntlCalendar, getAvailableLocales); HHVM_ME(IntlCalendar, getErrorCode); HHVM_ME(IntlCalendar, getErrorMessage); HHVM_ME(IntlCalendar, getFirstDayOfWeek); HHVM_ME(IntlCalendar, getGreatestMinimum); HHVM_ME(IntlCalendar, getLeastMaximum); HHVM_ME(IntlCalendar, getLocale); HHVM_ME(IntlCalendar, getMaximum); HHVM_ME(IntlCalendar, getMinimalDaysInFirstWeek); HHVM_ME(IntlCalendar, getMinimum); HHVM_STATIC_ME(IntlCalendar, getNow); HHVM_ME(IntlCalendar, getTime); HHVM_ME(IntlCalendar, getTimeZone); HHVM_ME(IntlCalendar, getType); HHVM_ME(IntlCalendar, inDaylightTime); HHVM_ME(IntlCalendar, isEquivalentTo); HHVM_ME(IntlCalendar, isLenient); HHVM_ME(IntlCalendar, _isSet); HHVM_ME(IntlCalendar, roll); HHVM_ME(IntlCalendar, __set_array); HHVM_ME(IntlCalendar, setFirstDayOfWeek); HHVM_ME(IntlCalendar, setLenient); HHVM_ME(IntlCalendar, setMinimalDaysInFirstWeek); HHVM_ME(IntlCalendar, setTime); HHVM_ME(IntlCalendar, setTimeZone); #if ((U_ICU_VERSION_MAJOR_NUM * 100) + U_ICU_VERSION_MINOR_NUM) >= 402 HHVM_STATIC_ME(IntlCalendar, getKeywordValuesForLocale); #endif #if ((U_ICU_VERSION_MAJOR_NUM * 100) + U_ICU_VERSION_MINOR_NUM) >= 404 HHVM_ME(IntlCalendar, getDayOfWeekType); HHVM_ME(IntlCalendar, getWeekendTransition); HHVM_ME(IntlCalendar, isWeekend); #endif #if ((U_ICU_VERSION_MAJOR_NUM * 100) + U_ICU_VERSION_MINOR_NUM) >= 409 HHVM_ME(IntlCalendar, getRepeatedWallTimeOption); HHVM_ME(IntlCalendar, getSkippedWallTimeOption); HHVM_ME(IntlCalendar, setRepeatedWallTimeOption); HHVM_ME(IntlCalendar, setSkippedWallTimeOption); #endif HHVM_ME(IntlGregorianCalendar, __ctor_array); HHVM_ME(IntlGregorianCalendar, isLeapYear); HHVM_ME(IntlGregorianCalendar, getGregorianChange); HHVM_ME(IntlGregorianCalendar, setGregorianChange); Native::registerNativeDataInfo<IntlCalendar>(s_IntlCalendar.get()); loadSystemlib("icu_calendar"); }
void ImagickExtension::loadImagickDrawClass() { HHVM_ME(ImagickDraw, affine); HHVM_ME(ImagickDraw, annotation); HHVM_ME(ImagickDraw, arc); HHVM_ME(ImagickDraw, bezier); HHVM_ME(ImagickDraw, circle); HHVM_ME(ImagickDraw, clear); HHVM_ME(ImagickDraw, __clone); HHVM_ME(ImagickDraw, color); HHVM_ME(ImagickDraw, comment); HHVM_ME(ImagickDraw, composite); HHVM_ME(ImagickDraw, __construct); HHVM_ME(ImagickDraw, destroy); HHVM_ME(ImagickDraw, ellipse); HHVM_ME(ImagickDraw, getClipPath); HHVM_ME(ImagickDraw, getClipRule); HHVM_ME(ImagickDraw, getClipUnits); HHVM_ME(ImagickDraw, getFillColor); HHVM_ME(ImagickDraw, getFillOpacity); HHVM_ME(ImagickDraw, getFillRule); HHVM_ME(ImagickDraw, getFont); HHVM_ME(ImagickDraw, getFontFamily); HHVM_ME(ImagickDraw, getFontSize); HHVM_ME(ImagickDraw, getFontStretch); HHVM_ME(ImagickDraw, getFontStyle); HHVM_ME(ImagickDraw, getFontWeight); HHVM_ME(ImagickDraw, getGravity); HHVM_ME(ImagickDraw, getStrokeAntialias); HHVM_ME(ImagickDraw, getStrokeColor); HHVM_ME(ImagickDraw, getStrokeDashArray); HHVM_ME(ImagickDraw, getStrokeDashOffset); HHVM_ME(ImagickDraw, getStrokeLineCap); HHVM_ME(ImagickDraw, getStrokeLineJoin); HHVM_ME(ImagickDraw, getStrokeMiterLimit); HHVM_ME(ImagickDraw, getStrokeOpacity); HHVM_ME(ImagickDraw, getStrokeWidth); HHVM_ME(ImagickDraw, getTextAlignment); HHVM_ME(ImagickDraw, getTextAntialias); HHVM_ME(ImagickDraw, getTextDecoration); HHVM_ME(ImagickDraw, getTextEncoding); HHVM_ME(ImagickDraw, getTextUnderColor); HHVM_ME(ImagickDraw, getVectorGraphics); HHVM_ME(ImagickDraw, line); HHVM_ME(ImagickDraw, matte); HHVM_ME(ImagickDraw, pathClose); HHVM_ME(ImagickDraw, pathCurveToAbsolute); HHVM_ME(ImagickDraw, pathCurveToQuadraticBezierAbsolute); HHVM_ME(ImagickDraw, pathCurveToQuadraticBezierRelative); HHVM_ME(ImagickDraw, pathCurveToQuadraticBezierSmoothAbsolute); HHVM_ME(ImagickDraw, pathCurveToQuadraticBezierSmoothRelative); HHVM_ME(ImagickDraw, pathCurveToRelative); HHVM_ME(ImagickDraw, pathCurveToSmoothAbsolute); HHVM_ME(ImagickDraw, pathCurveToSmoothRelative); HHVM_ME(ImagickDraw, pathEllipticArcAbsolute); HHVM_ME(ImagickDraw, pathEllipticArcRelative); HHVM_ME(ImagickDraw, pathFinish); HHVM_ME(ImagickDraw, pathLineToAbsolute); HHVM_ME(ImagickDraw, pathLineToHorizontalAbsolute); HHVM_ME(ImagickDraw, pathLineToHorizontalRelative); HHVM_ME(ImagickDraw, pathLineToRelative); HHVM_ME(ImagickDraw, pathLineToVerticalAbsolute); HHVM_ME(ImagickDraw, pathLineToVerticalRelative); HHVM_ME(ImagickDraw, pathMoveToAbsolute); HHVM_ME(ImagickDraw, pathMoveToRelative); HHVM_ME(ImagickDraw, pathStart); HHVM_ME(ImagickDraw, point); HHVM_ME(ImagickDraw, polygon); HHVM_ME(ImagickDraw, polyline); HHVM_ME(ImagickDraw, pop); HHVM_ME(ImagickDraw, popClipPath); HHVM_ME(ImagickDraw, popDefs); HHVM_ME(ImagickDraw, popPattern); HHVM_ME(ImagickDraw, push); HHVM_ME(ImagickDraw, pushClipPath); HHVM_ME(ImagickDraw, pushDefs); HHVM_ME(ImagickDraw, pushPattern); HHVM_ME(ImagickDraw, rectangle); HHVM_ME(ImagickDraw, render); HHVM_ME(ImagickDraw, rotate); HHVM_ME(ImagickDraw, roundRectangle); HHVM_ME(ImagickDraw, scale); HHVM_ME(ImagickDraw, setClipPath); HHVM_ME(ImagickDraw, setClipRule); HHVM_ME(ImagickDraw, setClipUnits); HHVM_ME(ImagickDraw, setFillAlpha); HHVM_ME(ImagickDraw, setFillColor); HHVM_ME(ImagickDraw, setFillOpacity); HHVM_ME(ImagickDraw, setFillPatternURL); HHVM_ME(ImagickDraw, setFillRule); HHVM_ME(ImagickDraw, setFont); HHVM_ME(ImagickDraw, setFontFamily); HHVM_ME(ImagickDraw, setFontSize); HHVM_ME(ImagickDraw, setFontStretch); HHVM_ME(ImagickDraw, setFontStyle); HHVM_ME(ImagickDraw, setFontWeight); HHVM_ME(ImagickDraw, setGravity); HHVM_ME(ImagickDraw, setResolution); HHVM_ME(ImagickDraw, setStrokeAlpha); HHVM_ME(ImagickDraw, setStrokeAntialias); HHVM_ME(ImagickDraw, setStrokeColor); HHVM_ME(ImagickDraw, setStrokeDashArray); HHVM_ME(ImagickDraw, setStrokeDashOffset); HHVM_ME(ImagickDraw, setStrokeLineCap); HHVM_ME(ImagickDraw, setStrokeLineJoin); HHVM_ME(ImagickDraw, setStrokeMiterLimit); HHVM_ME(ImagickDraw, setStrokeOpacity); HHVM_ME(ImagickDraw, setStrokePatternURL); HHVM_ME(ImagickDraw, setStrokeWidth); HHVM_ME(ImagickDraw, setTextAlignment); HHVM_ME(ImagickDraw, setTextAntialias); HHVM_ME(ImagickDraw, setTextDecoration); HHVM_ME(ImagickDraw, setTextEncoding); HHVM_ME(ImagickDraw, setTextUnderColor); HHVM_ME(ImagickDraw, setVectorGraphics); HHVM_ME(ImagickDraw, setViewbox); HHVM_ME(ImagickDraw, skewX); HHVM_ME(ImagickDraw, skewY); HHVM_ME(ImagickDraw, translate); }
virtual void moduleLoad(Hdf config) { HHVM_ME(DirectoryIterator, hh_readdir); HHVM_ME(GlobIterator, count); }
void moduleInit() override { HHVM_ME(DateTime, __construct); HHVM_ME(DateTime, add); HHVM_ME(DateTime, diff); HHVM_ME(DateTime, format); HHVM_ME(DateTime, getOffset); HHVM_ME(DateTime, getTimestamp); HHVM_ME(DateTime, getTimezone); HHVM_ME(DateTime, modify); HHVM_ME(DateTime, setDate); HHVM_ME(DateTime, setISODate); HHVM_ME(DateTime, setTime); HHVM_ME(DateTime, setTimestamp); HHVM_ME(DateTime, setTimezone); HHVM_ME(DateTime, sub); HHVM_ME(DateTime, __sleep); HHVM_ME(DateTime, __wakeup); HHVM_ME(DateTime, __debuginfo); HHVM_STATIC_ME(DateTime, createFromFormat); HHVM_STATIC_ME(DateTime, getLastErrors); Native::registerNativeDataInfo<DateTimeData>( DateTimeData::s_className.get(), Native::NDIFlags::NO_SWEEP); REGISTER_TIME_ZONE_CONSTANT(AFRICA); REGISTER_TIME_ZONE_CONSTANT(AMERICA); REGISTER_TIME_ZONE_CONSTANT(ANTARCTICA); REGISTER_TIME_ZONE_CONSTANT(ARCTIC); REGISTER_TIME_ZONE_CONSTANT(ASIA); REGISTER_TIME_ZONE_CONSTANT(ATLANTIC); REGISTER_TIME_ZONE_CONSTANT(AUSTRALIA); REGISTER_TIME_ZONE_CONSTANT(EUROPE); REGISTER_TIME_ZONE_CONSTANT(INDIAN); REGISTER_TIME_ZONE_CONSTANT(PACIFIC); REGISTER_TIME_ZONE_CONSTANT(UTC); REGISTER_TIME_ZONE_CONSTANT(ALL); REGISTER_TIME_ZONE_CONSTANT(ALL_WITH_BC); REGISTER_TIME_ZONE_CONSTANT(PER_COUNTRY); HHVM_ME(DateTimeZone, __construct); HHVM_ME(DateTimeZone, getLocation); HHVM_ME(DateTimeZone, getName); HHVM_ME(DateTimeZone, getOffset); HHVM_ME(DateTimeZone, getTransitions); HHVM_STATIC_ME(DateTimeZone, listAbbreviations); HHVM_STATIC_ME(DateTimeZone, listIdentifiers); Native::registerNativeDataInfo<DateTimeZoneData>( DateTimeZoneData::s_className.get(), Native::NDIFlags::NO_SWEEP); HHVM_ME(DateInterval, __construct); HHVM_ME(DateInterval, __get); HHVM_ME(DateInterval, __set); HHVM_ME(DateInterval, format); HHVM_STATIC_ME(DateInterval, createFromDateString); Native::registerNativeDataInfo<DateIntervalData>( DateIntervalData::s_className.get(), Native::NDIFlags::NO_SWEEP); HHVM_FE(checkdate); HHVM_FE(date_parse_from_format); HHVM_FE(date_create); HHVM_FE(date_default_timezone_get); HHVM_FE(date_default_timezone_set); HHVM_FE(date_format); HHVM_FE(date_parse); HHVM_FE(date_sun_info); HHVM_NAMED_FE(date_sunrise, date_sunrise_sunset<false>); HHVM_NAMED_FE(date_sunset, date_sunrise_sunset<true>); HHVM_FE(date); HHVM_FE(getdate); HHVM_FE(gettimeofday); HHVM_FE(gmdate); HHVM_FE(gmmktime); HHVM_FE(gmstrftime); HHVM_FE(idate); HHVM_FE(localtime); HHVM_FE(microtime); HHVM_FE(mktime); HHVM_FE(strftime); HHVM_FE(strptime); HHVM_FE(strtotime); HHVM_FE(time); HHVM_FE(timezone_name_from_abbr); HHVM_FE(timezone_version_get); #define SUNFUNCS_CNS(name, type) \ Native::registerConstant<KindOfInt64> \ (makeStaticString("SUNFUNCS_RET_" #name), \ (int64_t)DateTime::SunInfoFormat::Return##type); SUNFUNCS_CNS(DOUBLE, Double); SUNFUNCS_CNS(STRING, String); SUNFUNCS_CNS(TIMESTAMP, TimeStamp); #undef SUNFUNCS_CNS loadSystemlib("datetime"); }
void IntlExtension::initDateFormatter() { UDAT_CONST(FULL); UDAT_CONST(LONG); UDAT_CONST(MEDIUM); UDAT_CONST(SHORT); UDAT_CONST(NONE); UCAL_CONST(GREGORIAN); UCAL_CONST(TRADITIONAL); HHVM_ME(IntlDateFormatter, __construct_array); HHVM_ME(IntlDateFormatter, __clone); HHVM_ME(IntlDateFormatter, format); HHVM_STATIC_ME(IntlDateFormatter, formatObject); HHVM_ME(IntlDateFormatter, getCalendar); HHVM_ME(IntlDateFormatter, getDateType); HHVM_ME(IntlDateFormatter, getErrorCode); HHVM_ME(IntlDateFormatter, getErrorMessage); HHVM_ME(IntlDateFormatter, getLocale); HHVM_ME(IntlDateFormatter, getPattern); HHVM_ME(IntlDateFormatter, getTimeType); HHVM_ME(IntlDateFormatter, getTimeZoneId); HHVM_ME(IntlDateFormatter, getCalendarObject); HHVM_ME(IntlDateFormatter, getTimeZone); HHVM_ME(IntlDateFormatter, isLenient); HHVM_ME(IntlDateFormatter, localtime); HHVM_ME(IntlDateFormatter, parse); HHVM_ME(IntlDateFormatter, setCalendar); HHVM_ME(IntlDateFormatter, setLenient); HHVM_ME(IntlDateFormatter, setPattern); HHVM_ME(IntlDateFormatter, setTimeZone); loadSystemlib("icu_date_fmt"); }
void eventExtension::_initEventHttpClass() { HHVM_ME(EventHttp, __construct); HHVM_ME(EventHttp, accept); HHVM_ME(EventHttp, addServerAlias); HHVM_ME(EventHttp, bind); HHVM_ME(EventHttp, removeServerAlias); HHVM_ME(EventHttp, setAllowedMethods); HHVM_ME(EventHttp, setCallback); HHVM_ME(EventHttp, setDefaultCallback); HHVM_ME(EventHttp, setMaxBodySize); HHVM_ME(EventHttp, setMaxHeadersSize); HHVM_ME(EventHttp, setTimeout); }
void moduleInit() override { HHVM_RCC_INT(XMLReader, NONE, XML_READER_TYPE_NONE); HHVM_RCC_INT(XMLReader, ELEMENT, XML_READER_TYPE_ELEMENT); HHVM_RCC_INT(XMLReader, ATTRIBUTE, XML_READER_TYPE_ATTRIBUTE); HHVM_RCC_INT(XMLReader, TEXT, XML_READER_TYPE_TEXT); HHVM_RCC_INT(XMLReader, CDATA, XML_READER_TYPE_CDATA); HHVM_RCC_INT(XMLReader, ENTITY_REF, XML_READER_TYPE_ENTITY_REFERENCE); HHVM_RCC_INT(XMLReader, ENTITY, XML_READER_TYPE_ENTITY); HHVM_RCC_INT(XMLReader, PI, XML_READER_TYPE_PROCESSING_INSTRUCTION); HHVM_RCC_INT(XMLReader, COMMENT, XML_READER_TYPE_COMMENT); HHVM_RCC_INT(XMLReader, DOC, XML_READER_TYPE_DOCUMENT); HHVM_RCC_INT(XMLReader, DOC_TYPE, XML_READER_TYPE_DOCUMENT_TYPE); HHVM_RCC_INT(XMLReader, DOC_FRAGMENT, XML_READER_TYPE_DOCUMENT_FRAGMENT); HHVM_RCC_INT(XMLReader, NOTATION, XML_READER_TYPE_NOTATION); HHVM_RCC_INT(XMLReader, WHITESPACE, XML_READER_TYPE_WHITESPACE); HHVM_RCC_INT(XMLReader, SIGNIFICANT_WHITESPACE, XML_READER_TYPE_SIGNIFICANT_WHITESPACE); HHVM_RCC_INT(XMLReader, END_ELEMENT, XML_READER_TYPE_END_ELEMENT); HHVM_RCC_INT(XMLReader, END_ENTITY, XML_READER_TYPE_END_ENTITY); HHVM_RCC_INT(XMLReader, XML_DECLARATION, XML_READER_TYPE_XML_DECLARATION); HHVM_RCC_INT(XMLReader, LOADDTD, XML_PARSER_LOADDTD); HHVM_RCC_INT(XMLReader, DEFAULTATTRS, XML_PARSER_DEFAULTATTRS); HHVM_RCC_INT(XMLReader, VALIDATE, XML_PARSER_VALIDATE); HHVM_RCC_INT(XMLReader, SUBST_ENTITIES, XML_PARSER_SUBST_ENTITIES); HHVM_ME(XMLReader, open); HHVM_ME(XMLReader, XML); HHVM_ME(XMLReader, close); HHVM_ME(XMLReader, read); HHVM_ME(XMLReader, next); HHVM_ME(XMLReader, readString); HHVM_ME(XMLReader, readInnerXML); HHVM_ME(XMLReader, readOuterXML); HHVM_ME(XMLReader, moveToNextAttribute); HHVM_ME(XMLReader, getAttribute); HHVM_ME(XMLReader, getAttributeNo); HHVM_ME(XMLReader, getAttributeNs); HHVM_ME(XMLReader, moveToAttribute); HHVM_ME(XMLReader, moveToAttributeNo); HHVM_ME(XMLReader, moveToAttributeNs); HHVM_ME(XMLReader, moveToElement); HHVM_ME(XMLReader, moveToFirstAttribute); HHVM_ME(XMLReader, isValid); HHVM_ME(XMLReader, __get); HHVM_ME(XMLReader, getParserProperty); HHVM_ME(XMLReader, lookupNamespace); HHVM_ME(XMLReader, setSchema); HHVM_ME(XMLReader, setParserProperty); HHVM_ME(XMLReader, setRelaxNGSchema); HHVM_ME(XMLReader, setRelaxNGSchemaSource); HHVM_ME(XMLReader, expand); Native::registerNativeDataInfo<XMLReader>(s_XMLReader.get()); loadSystemlib(); }
virtual void moduleInit() { HHVM_ME(ZipArchive, addEmptyDir); HHVM_ME(ZipArchive, addFile); HHVM_ME(ZipArchive, addFromString); HHVM_ME(ZipArchive, addGlob); HHVM_ME(ZipArchive, addPattern); HHVM_ME(ZipArchive, close); HHVM_ME(ZipArchive, deleteIndex); HHVM_ME(ZipArchive, deleteName); HHVM_ME(ZipArchive, extractTo); HHVM_ME(ZipArchive, getArchiveComment); HHVM_ME(ZipArchive, getCommentIndex); HHVM_ME(ZipArchive, getCommentName); HHVM_ME(ZipArchive, getFromIndex); HHVM_ME(ZipArchive, getFromName); HHVM_ME(ZipArchive, getNameIndex); HHVM_ME(ZipArchive, getStatusString); HHVM_ME(ZipArchive, getStream); HHVM_ME(ZipArchive, locateName); HHVM_ME(ZipArchive, open); HHVM_ME(ZipArchive, renameIndex); HHVM_ME(ZipArchive, renameName); HHVM_ME(ZipArchive, setArchiveComment); HHVM_ME(ZipArchive, setCommentIndex); HHVM_ME(ZipArchive, setCommentName); HHVM_ME(ZipArchive, statIndex); HHVM_ME(ZipArchive, statName); HHVM_ME(ZipArchive, unchangeAll); HHVM_ME(ZipArchive, unchangeArchive); HHVM_ME(ZipArchive, unchangeIndex); HHVM_ME(ZipArchive, unchangeName); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CREATE.get(), k_CREATE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_EXCL.get(), k_EXCL); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CHECKCONS.get(), k_CHECKCONS); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_OVERWRITE.get(), k_OVERWRITE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_FL_NOCASE.get(), k_FL_NOCASE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_FL_NODIR.get(), k_FL_NODIR); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_FL_COMPRESSED.get(), k_FL_COMPRESSED); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_FL_UNCHANGED.get(), k_FL_UNCHANGED); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_FL_RECOMPRESS.get(), k_FL_RECOMPRESS); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_FL_ENCRYPTED.get(), k_FL_ENCRYPTED); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_OK.get(), k_ER_OK); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_MULTIDISK.get(), k_ER_MULTIDISK); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_RENAME.get(), k_ER_RENAME); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_CLOSE.get(), k_ER_CLOSE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_SEEK.get(), k_ER_SEEK); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_READ.get(), k_ER_READ); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_WRITE.get(), k_ER_WRITE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_CRC.get(), k_ER_CRC); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_ZIPCLOSED.get(), k_ER_ZIPCLOSED); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_NOENT.get(), k_ER_NOENT); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_EXISTS.get(), k_ER_EXISTS); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_OPEN.get(), k_ER_OPEN); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_TMPOPEN.get(), k_ER_TMPOPEN); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_ZLIB.get(), k_ER_ZLIB); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_MEMORY.get(), k_ER_MEMORY); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_CHANGED.get(), k_ER_CHANGED); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_COMPNOTSUPP.get(), k_ER_COMPNOTSUPP); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_EOF.get(), k_ER_EOF); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_INVAL.get(), k_ER_INVAL); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_NOZIP.get(), k_ER_NOZIP); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_INTERNAL.get(), k_ER_INTERNAL); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_INCONS.get(), k_ER_INCONS); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_REMOVE.get(), k_ER_REMOVE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_DELETED.get(), k_ER_DELETED); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_ENCRNOTSUPP.get(), k_ER_ENCRNOTSUPP); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_RDONLY.get(), k_ER_RDONLY); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_NOPASSWD.get(), k_ER_NOPASSWD); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_ER_WRONGPASSWD.get(), k_ER_WRONGPASSWD); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_DEFAULT.get(), k_CM_DEFAULT); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_STORE.get(), k_CM_STORE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_SHRINK.get(), k_CM_SHRINK); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_REDUCE_1.get(), k_CM_REDUCE_1); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_REDUCE_2.get(), k_CM_REDUCE_2); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_REDUCE_3.get(), k_CM_REDUCE_3); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_REDUCE_4.get(), k_CM_REDUCE_4); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_IMPLODE.get(), k_CM_IMPLODE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_DEFLATE.get(), k_CM_DEFLATE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_DEFLATE64.get(), k_CM_DEFLATE64); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_PKWARE_IMPLODE.get(), k_CM_PKWARE_IMPLODE); Native::registerClassConstant<KindOfInt64>(s_ZipArchive.get(), s_CM_BZIP2.get(), k_CM_BZIP2); HHVM_FE(zip_close); HHVM_FE(zip_entry_close); HHVM_FE(zip_entry_compressedsize); HHVM_FE(zip_entry_compressionmethod); HHVM_FE(zip_entry_filesize); HHVM_FE(zip_entry_name); HHVM_FE(zip_entry_open); HHVM_FE(zip_entry_read); HHVM_FE(zip_open); HHVM_FE(zip_read); loadSystemlib(); }
void moduleInit() override { REGISTER_XML_READER_CONSTANT(NONE); REGISTER_XML_READER_CONSTANT(ELEMENT); REGISTER_XML_READER_CONSTANT(ATTRIBUTE); REGISTER_XML_READER_CONSTANT(TEXT); REGISTER_XML_READER_CONSTANT(CDATA); REGISTER_XML_READER_CONSTANT(ENTITY_REF); REGISTER_XML_READER_CONSTANT(ENTITY); REGISTER_XML_READER_CONSTANT(PI); REGISTER_XML_READER_CONSTANT(COMMENT); REGISTER_XML_READER_CONSTANT(DOC); REGISTER_XML_READER_CONSTANT(DOC_TYPE); REGISTER_XML_READER_CONSTANT(DOC_FRAGMENT); REGISTER_XML_READER_CONSTANT(NOTATION); REGISTER_XML_READER_CONSTANT(WHITESPACE); REGISTER_XML_READER_CONSTANT(SIGNIFICANT_WHITESPACE); REGISTER_XML_READER_CONSTANT(END_ELEMENT); REGISTER_XML_READER_CONSTANT(END_ENTITY); REGISTER_XML_READER_CONSTANT(XML_DECLARATION); REGISTER_XML_READER_CONSTANT(LOADDTD); REGISTER_XML_READER_CONSTANT(DEFAULTATTRS); REGISTER_XML_READER_CONSTANT(VALIDATE); REGISTER_XML_READER_CONSTANT(SUBST_ENTITIES); HHVM_ME(XMLReader, open); HHVM_ME(XMLReader, XML); HHVM_ME(XMLReader, close); HHVM_ME(XMLReader, read); HHVM_ME(XMLReader, next); HHVM_ME(XMLReader, readString); HHVM_ME(XMLReader, readInnerXML); HHVM_ME(XMLReader, readOuterXML); HHVM_ME(XMLReader, moveToNextAttribute); HHVM_ME(XMLReader, getAttribute); HHVM_ME(XMLReader, getAttributeNo); HHVM_ME(XMLReader, getAttributeNs); HHVM_ME(XMLReader, moveToAttribute); HHVM_ME(XMLReader, moveToAttributeNo); HHVM_ME(XMLReader, moveToAttributeNs); HHVM_ME(XMLReader, moveToElement); HHVM_ME(XMLReader, moveToFirstAttribute); HHVM_ME(XMLReader, isValid); HHVM_ME(XMLReader, __get); HHVM_ME(XMLReader, getParserProperty); HHVM_ME(XMLReader, lookupNamespace); HHVM_ME(XMLReader, setSchema); HHVM_ME(XMLReader, setParserProperty); HHVM_ME(XMLReader, setRelaxNGSchema); HHVM_ME(XMLReader, setRelaxNGSchemaSource); HHVM_ME(XMLReader, expand); Native::registerNativeDataInfo<XMLReader>(s_XMLReader.get()); loadSystemlib(); }
void moduleInit() override { xsltSetGenericErrorFunc(nullptr, xslt_ext_error_handler); exsltRegisterAll(); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_NONE.get(), k_XSL_SECPREF_NONE ); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_READ_FILE.get(), k_XSL_SECPREF_READ_FILE ); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_WRITE_FILE.get(), k_XSL_SECPREF_WRITE_FILE ); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_CREATE_DIRECTORY.get(), k_XSL_SECPREF_CREATE_DIRECTORY ); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_READ_NETWORK.get(), k_XSL_SECPREF_READ_NETWORK ); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_WRITE_NETWORK.get(), k_XSL_SECPREF_WRITE_NETWORK ); Native::registerConstant<KindOfInt64>( s_XSL_SECPREF_DEFAULT.get(), k_XSL_SECPREF_DEFAULT ); Native::registerConstant<KindOfInt64>( s_xslt_version.get(), LIBXSLT_VERSION ); Native::registerConstant<KindOfString>( s_xslt_dotted_version.get(), s_xslt_dotted_version_value.get() ); HHVM_ME(XSLTProcessor, getParameter); HHVM_ME(XSLTProcessor, getSecurityPrefs); HHVM_ME(XSLTProcessor, importStylesheet); HHVM_ME(XSLTProcessor, removeParameter); HHVM_ME(XSLTProcessor, registerPHPFunctions); HHVM_ME(XSLTProcessor, setParameter); HHVM_ME(XSLTProcessor, setSecurityPrefs); HHVM_ME(XSLTProcessor, setProfiling); HHVM_ME(XSLTProcessor, transformToDoc); HHVM_ME(XSLTProcessor, transformToURI); HHVM_ME(XSLTProcessor, transformToXML); Native:: registerNativeDataInfo<XSLTProcessorData>(s_XSLTProcessorData.get()); loadSystemlib(); }