当前位置: 首页>>代码示例>>PHP>>正文


PHP Type::getClassName方法代码示例

本文整理汇总了PHP中Type::getClassName方法的典型用法代码示例。如果您正苦于以下问题:PHP Type::getClassName方法的具体用法?PHP Type::getClassName怎么用?PHP Type::getClassName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Type的用法示例。


在下文中一共展示了Type::getClassName方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: executeResult

 public function executeResult($context)
 {
     try {
         return $context->actionContext->actionResult->executeResult($context->actionContext);
     } catch (Exception $__hx__e) {
         $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
         $e = $_ex_;
         $p_methodName = "executeResult";
         $p_lineNumber = -1;
         $p_fileName = "";
         $p_customParams = new _hx_array(array("actionContext"));
         $p_className = Type::getClassName(Type::getClass($context->actionContext));
         return tink_core__Future_Future_Impl_::sync(tink_core_Outcome::Failure(ufront_web_HttpError::wrap($e, null, _hx_anonymous(array("fileName" => "MVCHandler.hx", "lineNumber" => 70, "className" => "ufront.web.MVCHandler", "methodName" => "executeResult")))));
     }
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:15,代码来源:MVCHandler.class.php

示例2: isEditorLicensed

 public function isEditorLicensed()
 {
     $licenseClass = Type::resolveClass("com.wiris.util.sys.License");
     if ($licenseClass !== null) {
         $init = Reflect::field($licenseClass, "init");
         $initMethodParams = new _hx_array(array());
         $initMethodParams->push($this->getConfiguration()->getProperty(com_wiris_plugin_api_ConfigurationKeys::$EDITOR_KEY, ""));
         $initMethodParams->push("");
         $initMethodParams->push(new _hx_array(array(4, 5, 9, 10)));
         Reflect::callMethod($licenseClass, $init, $initMethodParams);
         $isLicensedMethod = Reflect::field($licenseClass, "isLicensed");
         $isLicensedObject = Reflect::callMethod($licenseClass, $isLicensedMethod, null);
         $isLicensed = null;
         if (_hx_index_of(Type::getClassName(Type::getClass($isLicensedObject)), "Boolean", null) !== -1) {
             $isLicensed = _hx_string_call($isLicensedObject, "toString", array());
         } else {
             $isLicensed = $isLicensedObject;
         }
         return $isLicensed;
     }
     return false;
 }
开发者ID:komcdo,项目名称:winnow,代码行数:22,代码来源:PluginBuilderImpl.class.php

示例3: initializeContext

 public function initializeContext($injector)
 {
     $this->context = new haxe_remoting_Context();
     if (null == $this->apiContexts) {
         throw new HException('null iterable');
     }
     $__hx__it = $this->apiContexts->iterator();
     while ($__hx__it->hasNext()) {
         unset($apiContextClass);
         $apiContextClass = $__hx__it->next();
         $apiContext = $injector->_instantiate($apiContextClass);
         $_g = 0;
         $_g1 = Reflect::fields($apiContext);
         while ($_g < $_g1->length) {
             $fieldName = $_g1[$_g];
             ++$_g;
             $api = Reflect::field($apiContext, $fieldName);
             if (Reflect::isObject($api)) {
                 $this->context->addObject($fieldName, $api, false);
             }
             unset($fieldName, $api);
         }
         unset($_g1, $_g);
         unset($apiContext);
     }
     if (null == $this->apis) {
         throw new HException('null iterable');
     }
     $__hx__it = $this->apis->iterator();
     while ($__hx__it->hasNext()) {
         unset($apiClass);
         $apiClass = $__hx__it->next();
         $className = Type::getClassName($apiClass);
         $api1 = $injector->_instantiate($apiClass);
         $this->context->addObject($className, $api1, false);
         unset($className, $api1);
     }
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:38,代码来源:RemotingHandler.class.php

示例4: zcale_core_boot_targets_ServerBoot_0

function zcale_core_boot_targets_ServerBoot_0(&$__hx__this, &$mainClass)
{
    $s = Type::getClassName($mainClass);
    return str_replace(".", "/", $s);
}
开发者ID:adrianmm44,项目名称:zcale,代码行数:5,代码来源:ServerBoot.class.php

示例5: toString

 public function toString()
 {
     return Type::getClassName(Type::getClass($this));
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:4,代码来源:Controller.class.php

示例6: isArray

 static function isArray($arr)
 {
     if (Type::getClassName(Type::getClass($arr)) === "Array") {
         return true;
     } else {
         return false;
     }
 }
开发者ID:axelhuizinga,项目名称:gem,代码行数:8,代码来源:ArrayTools.class.php

示例7: serialize


//.........这里部分代码省略.........
                         unset($b3, $b2, $b1);
                     }
                     if ($i2 === $max) {
                         $b11 = null;
                         $pos3 = $i2++;
                         $b11 = ord($v7->b[$pos3]);
                         $b21 = null;
                         $pos4 = $i2++;
                         $b21 = ord($v7->b[$pos4]);
                         $charsBuf->add(_hx_char_at($b64, $b11 >> 2));
                         $charsBuf->add(_hx_char_at($b64, ($b11 << 4 | $b21 >> 4) & 63));
                         $charsBuf->add(_hx_char_at($b64, $b21 << 2 & 63));
                     } else {
                         if ($i2 === $max + 1) {
                             $b12 = null;
                             $pos5 = $i2++;
                             $b12 = ord($v7->b[$pos5]);
                             $charsBuf->add(_hx_char_at($b64, $b12 >> 2));
                             $charsBuf->add(_hx_char_at($b64, $b12 << 4 & 63));
                         }
                     }
                     $chars = $charsBuf->b;
                     $this->buf->add("s");
                     $this->buf->add(strlen($chars));
                     $this->buf->add(":");
                     $this->buf->add($chars);
                     break;
                 default:
                     if ($this->useCache) {
                         $this->cache->pop();
                     }
                     if (_hx_field($v, "hxSerialize") !== null) {
                         $this->buf->add("C");
                         $this->serializeString(Type::getClassName($c));
                         if ($this->useCache) {
                             $this->cache->push($v);
                         }
                         $v->hxSerialize($this);
                         $this->buf->add("g");
                     } else {
                         $this->buf->add("c");
                         $this->serializeString(Type::getClassName($c));
                         if ($this->useCache) {
                             $this->cache->push($v);
                         }
                         $this->serializeFields($v);
                     }
                     break;
             }
             break;
         case 4:
             if (Std::is($v, _hx_qtype("Class"))) {
                 $className = Type::getClassName($v);
                 $this->buf->add("A");
                 $this->serializeString($className);
             } else {
                 if (Std::is($v, _hx_qtype("Enum"))) {
                     $this->buf->add("B");
                     $this->serializeString(Type::getEnumName($v));
                 } else {
                     if ($this->useCache && $this->serializeRef($v)) {
                         return;
                     }
                     $this->buf->add("o");
                     $this->serializeFields($v);
                 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:67,代码来源:Serializer.class.php

示例8: initOnFirstExecute

 public function initOnFirstExecute($httpContext)
 {
     $this->firstRun = false;
     $this->injector->mapType("String", "scriptDirectory", null)->toValue($httpContext->request->get_scriptDirectory());
     $this->injector->mapType("String", "contentDirectory", null)->toValue($httpContext->get_contentDirectory());
     if ($this->configuration->viewEngine !== null) {
         try {
             $this->viewEngine = $this->injector->getValueForType("ufront.view.UFViewEngine", null);
             if (null == $this->appTemplatingEngines) {
                 throw new HException('null iterable');
             }
             $__hx__it = $this->appTemplatingEngines->iterator();
             while ($__hx__it->hasNext()) {
                 unset($te);
                 $te = $__hx__it->next();
                 $this->viewEngine->engines->push($te);
             }
         } catch (Exception $__hx__e) {
             $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
             $e = $_ex_;
             $msg = "Failed to load view engine " . _hx_string_or_null(Type::getClassName($this->configuration->viewEngine)) . ": " . Std::string($e);
             $httpContext->messages->push(_hx_anonymous(array("msg" => $msg, "pos" => _hx_anonymous(array("fileName" => "UfrontApplication.hx", "lineNumber" => 206, "className" => "ufront.app.UfrontApplication", "methodName" => "initOnFirstExecute")), "type" => ufront_log_MessageType::$MWarning)));
         }
     }
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:25,代码来源:UfrontApplication.class.php

示例9: addCrumb

 public function addCrumb($instance, $methodName = null)
 {
     $classPath = Type::getClassName(Type::getClass($instance));
     $this->data->error->crumbs->push(_hx_anonymous(array("classPath" => $classPath, "methodName" => $methodName)));
 }
开发者ID:adrianmm44,项目名称:zcale,代码行数:5,代码来源:ErrorManager.class.php

示例10: getValueType

 static function getValueType($value)
 {
     if (Std::is($value, _hx_qtype("String"))) {
         return "String";
     }
     if (Std::is($value, _hx_qtype("Class"))) {
         return Type::getClassName($value);
     }
     if (Std::is($value, _hx_qtype("Enum"))) {
         return Type::getEnumName($value);
     }
     $name = null;
     $_g = Type::typeof($value);
     switch ($_g->index) {
         case 1:
             $name = "Int";
             break;
         case 3:
             $name = "Bool";
             break;
         case 6:
             $c = _hx_deref($_g)->params[0];
             $name = Type::getClassName($c);
             break;
         case 7:
             $e = _hx_deref($_g)->params[0];
             $name = Type::getEnumName($e);
             break;
         default:
             $name = null;
             break;
     }
     if ($name !== null) {
         return $name;
     }
     throw new HException("Could not determine type name of " . Std::string($value));
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:37,代码来源:Injector.class.php

示例11: ufront_app_HttpApplication_12

function ufront_app_HttpApplication_12(&$_g, &$ctx, &$doneTrigger, &$err, &$errHandlerModules, &$resMidModules, $m2)
{
    $b2 = _hx_anonymous(array("methodName" => "log", "lineNumber" => -1, "fileName" => "", "customParams" => new _hx_array(array("httpContext", "appMessages")), "className" => Type::getClassName(Type::getClass($m2))));
    return new tink_core_MPair(ufront_app_HttpApplication_25($__hx__this, $_g, $b2, $ctx, $doneTrigger, $err, $errHandlerModules, $m2, $resMidModules), $b2);
}
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:5,代码来源:HttpApplication.class.php

示例12: fakePosition

 static function fakePosition($obj, $method, $args = null)
 {
     return _hx_anonymous(array("methodName" => $method, "lineNumber" => -1, "fileName" => "", "customParams" => $args, "className" => Type::getClassName(Type::getClass($obj))));
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:4,代码来源:HttpError.class.php

示例13: toString

 public function toString()
 {
     return "[Route method:" . $this->method . " at:" . $this->route . " to:" . Type::getClassName($this->scope) . "#" . $this->func . "]";
 }
开发者ID:slaskis,项目名称:hxsinatra,代码行数:4,代码来源:Route.class.php

示例14: dumpObjectRsafe

 static function dumpObjectRsafe($ob, $i = null)
 {
     $tClass = Type::getClass($ob);
     $m = "dumpObjectRsafe:" . Std::string($ob !== null ? Type::getClass($ob) : $ob) . "\n";
     $names = new _hx_array(array());
     if (Type::getClass($ob) !== null) {
         $names = Type::getInstanceFields(Type::getClass($ob));
     } else {
         $names = Reflect::fields($ob);
     }
     if (Type::getClass($ob) !== null) {
         $m = _hx_string_or_null(Type::getClassName(Type::getClass($ob))) . ":\n";
     }
     $_g = 0;
     while ($_g < $names->length) {
         $name = $names[$_g];
         ++$_g;
         try {
             $t = Std::string(Type::typeof(Reflect::field($ob, $name)));
             if (me_cunity_debug_Out::$skipFunctions && $t === "TFunction") {
                 null;
             }
             if ($name === "parentView" || $name === "ContextMenu" || $name === "cMenu") {
                 $m .= _hx_string_or_null($name) . ":" . Std::string($ob->parentView->id) . "\n";
             } else {
                 $m .= _hx_string_or_null($name) . ":" . Std::string(Reflect::field($ob, $name)) . ":" . _hx_string_or_null($t) . "\n";
             }
             unset($t);
         } catch (Exception $__hx__e) {
             $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
             $ex = $_ex_;
             $m .= _hx_string_or_null($name) . ":" . Std::string($ex);
         }
         unset($name, $ex);
     }
     me_cunity_debug_Out::_trace($m, $i);
 }
开发者ID:axelhuizinga,项目名称:gem,代码行数:37,代码来源:Out.class.php


注:本文中的Type::getClassName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。