• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP TBase类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: testCallUndefinedMethod

 function testCallUndefinedMethod()
 {
     $obj = new TBase();
     try {
         $obj->noMethod();
     } catch (Exception $e) {
         $this->assertEquals("TException", get_class($e));
     }
 }
开发者ID:kurari,项目名称:Tenpra,代码行数:9,代码来源:TBaseTest.php


示例2: eliminar

 public function eliminar()
 {
     if ($this->getId() == '') {
         return false;
     }
     $db = TBase::conectaDB();
     return $db->Execute("delete from departamento where idDepartamento = " . $this->getId()) ? true : false;
 }
开发者ID:hugooluisss,项目名称:pdv,代码行数:8,代码来源:TDepartamento.class.php


示例3: guardar

 public function guardar()
 {
     if (!parent::guardar()) {
         return false;
     }
     $db = TBase::conectaDB();
     $rs = $db->Execute("select idItem from servicio where idItem = " . $this->getId());
     if ($rs->EOF) {
         $rs = $db->Execute("INSERT INTO servicio (idItem, precio, impInc, imp) VALUES (" . $this->getId() . ", 0, 'S', 0)");
     }
     $rs = $db->Execute("UPDATE servicio\n\t\t\tSET\n\t\t\t\tprecio = " . $this->getPrecio() . ",\n\t\t\t\timpInc = '" . $this->impInc . "',\n\t\t\t\timp = " . $this->getImpuesto() . "\n\t\t\tWHERE idItem = " . $this->getId());
     return $rs ? true : false;
 }
开发者ID:hugooluisss,项目名称:pdv,代码行数:13,代码来源:TServicio.class.php


示例4: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'start', 'type' => \TType::STRING), 2 => array('var' => 'finish', 'type' => \TType::STRING), 3 => array('var' => 'reversed', 'type' => \TType::BOOL), 4 => array('var' => 'count', 'type' => \TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.SliceRange.php


示例5: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'keyspace', 'type' => \TType::STRING), 2 => array('var' => 'name', 'type' => \TType::STRING), 3 => array('var' => 'column_type', 'type' => \TType::STRING), 5 => array('var' => 'comparator_type', 'type' => \TType::STRING), 6 => array('var' => 'subcomparator_type', 'type' => \TType::STRING), 8 => array('var' => 'comment', 'type' => \TType::STRING), 12 => array('var' => 'read_repair_chance', 'type' => \TType::DOUBLE), 13 => array('var' => 'column_metadata', 'type' => \TType::LST, 'etype' => \TType::STRUCT, 'elem' => array('type' => \TType::STRUCT, 'class' => '\\cassandra\\ColumnDef')), 14 => array('var' => 'gc_grace_seconds', 'type' => \TType::I32), 15 => array('var' => 'default_validation_class', 'type' => \TType::STRING), 16 => array('var' => 'id', 'type' => \TType::I32), 17 => array('var' => 'min_compaction_threshold', 'type' => \TType::I32), 18 => array('var' => 'max_compaction_threshold', 'type' => \TType::I32), 24 => array('var' => 'replicate_on_write', 'type' => \TType::BOOL), 26 => array('var' => 'key_validation_class', 'type' => \TType::STRING), 28 => array('var' => 'key_alias', 'type' => \TType::STRING), 29 => array('var' => 'compaction_strategy', 'type' => \TType::STRING), 30 => array('var' => 'compaction_strategy_options', 'type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::STRING, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::STRING)), 32 => array('var' => 'compression_options', 'type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::STRING, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::STRING)), 33 => array('var' => 'bloom_filter_fp_chance', 'type' => \TType::DOUBLE), 34 => array('var' => 'caching', 'type' => \TType::STRING), 37 => array('var' => 'dclocal_read_repair_chance', 'type' => \TType::DOUBLE), 9 => array('var' => 'row_cache_size', 'type' => \TType::DOUBLE), 11 => array('var' => 'key_cache_size', 'type' => \TType::DOUBLE), 19 => array('var' => 'row_cache_save_period_in_seconds', 'type' => \TType::I32), 20 => array('var' => 'key_cache_save_period_in_seconds', 'type' => \TType::I32), 21 => array('var' => 'memtable_flush_after_mins', 'type' => \TType::I32), 22 => array('var' => 'memtable_throughput_in_mb', 'type' => \TType::I32), 23 => array('var' => 'memtable_operations_in_millions', 'type' => \TType::DOUBLE), 25 => array('var' => 'merge_shards_chance', 'type' => \TType::DOUBLE), 27 => array('var' => 'row_cache_provider', 'type' => \TType::STRING), 31 => array('var' => 'row_cache_keys_to_save', 'type' => \TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.CfDef.php


示例6: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'host', 'type' => \TType::STRING), 2 => array('var' => 'datacenter', 'type' => \TType::STRING), 3 => array('var' => 'rack', 'type' => \TType::STRING));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.EndpointDetails.php


示例7: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'column_or_supercolumn', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\ColumnOrSuperColumn'), 2 => array('var' => 'deletion', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\Deletion'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Mutation.php


示例8: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'key', 'type' => \TType::STRING), 2 => array('var' => 'column_path', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\ColumnPath'), 3 => array('var' => 'consistency_level', 'type' => \TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_get_args.php


示例9: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'svn_commit_id', 'type' => TType::STRING), 2 => array('var' => 'svn_dirty', 'type' => TType::STRING), 3 => array('var' => 'git_commit_id', 'type' => TType::STRING), 4 => array('var' => 'git_dirty', 'type' => TType::STRING), 5 => array('var' => 'git_tag', 'type' => TType::STRING), 6 => array('var' => 'build_time', 'type' => TType::STRING), 7 => array('var' => 'build_host', 'type' => TType::STRING), 8 => array('var' => 'build_user', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:wheatma,项目名称:react_study,代码行数:9,代码来源:release_info_types.php


示例10: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'cf_def', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\CfDef'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_system_add_column_family_args.php


示例11: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'ire', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\InvalidRequestException'), 2 => array('var' => 'ue', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\UnavailableException'), 3 => array('var' => 'te', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\TimedOutException'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_add_result.php


示例12: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(0 => array('var' => 'success', 'type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::LST, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::LST, 'etype' => \TType::STRUCT, 'elem' => array('type' => \TType::STRUCT, 'class' => '\\cassandra\\ColumnOrSuperColumn'))), 1 => array('var' => 'ire', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\InvalidRequestException'), 2 => array('var' => 'ue', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\UnavailableException'), 3 => array('var' => 'te', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\TimedOutException'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_multiget_slice_result.php


示例13: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'itemId', 'type' => \TType::I32), 2 => array('var' => 'count', 'type' => \TType::I32), 3 => array('var' => 'variable_types', 'type' => \TType::LST, 'etype' => \TType::STRING, 'elem' => array('type' => \TType::STRING)));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.CqlPreparedResult.php


示例14: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(0 => array('var' => 'success', 'type' => \TType::LST, 'etype' => \TType::STRING, 'elem' => array('type' => \TType::STRING)), 1 => array('var' => 'ire', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\InvalidRequestException'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_describe_splits_result.php


示例15: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'query', 'type' => \TType::STRING), 2 => array('var' => 'compression', 'type' => \TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_execute_cql_query_args.php


示例16: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => \TType::STRING), 2 => array('var' => 'strategy_class', 'type' => \TType::STRING), 3 => array('var' => 'strategy_options', 'type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::STRING, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::STRING)), 4 => array('var' => 'replication_factor', 'type' => \TType::I32), 5 => array('var' => 'cf_defs', 'type' => \TType::LST, 'etype' => \TType::STRUCT, 'elem' => array('type' => \TType::STRUCT, 'class' => '\\cassandra\\CfDef')), 6 => array('var' => 'durable_writes', 'type' => \TType::BOOL));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.KsDef.php


示例17: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'start_token', 'type' => \TType::STRING), 2 => array('var' => 'end_token', 'type' => \TType::STRING), 3 => array('var' => 'endpoints', 'type' => \TType::LST, 'etype' => \TType::STRING, 'elem' => array('type' => \TType::STRING)), 4 => array('var' => 'rpc_endpoints', 'type' => \TType::LST, 'etype' => \TType::STRING, 'elem' => array('type' => \TType::STRING)), 5 => array('var' => 'endpoint_details', 'type' => \TType::LST, 'etype' => \TType::STRUCT, 'elem' => array('type' => \TType::STRUCT, 'class' => '\\cassandra\\EndpointDetails')));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.TokenRange.php


示例18: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'mutation_map', 'type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::MAP, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::LST, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::LST, 'etype' => \TType::STRUCT, 'elem' => array('type' => \TType::STRUCT, 'class' => '\\cassandra\\Mutation')))), 2 => array('var' => 'consistency_level', 'type' => \TType::I32));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Cassandra_batch_mutate_args.php


示例19: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'timestamp', 'type' => \TType::I64), 2 => array('var' => 'super_column', 'type' => \TType::STRING), 3 => array('var' => 'predicate', 'type' => \TType::STRUCT, 'class' => '\\cassandra\\SlicePredicate'));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.Deletion.php


示例20: __construct

 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'credentials', 'type' => \TType::MAP, 'ktype' => \TType::STRING, 'vtype' => \TType::STRING, 'key' => array('type' => \TType::STRING), 'val' => array('type' => \TType::STRING)));
     }
     if (is_array($vals)) {
         parent::__construct(self::$_TSPEC, $vals);
     }
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:9,代码来源:cassandra.AuthenticationRequest.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP TButton类代码示例发布时间:2022-05-23
下一篇:
PHP TBGSettings类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap