本文整理汇总了PHP中TBase类的典型用法代码示例。如果您正苦于以下问题:PHP TBase类的具体用法?PHP TBase怎么用?PHP TBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TBase类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testCallUndefinedMethod
function testCallUndefinedMethod()
{
$obj = new TBase();
try {
$obj->noMethod();
} catch (Exception $e) {
$this->assertEquals("TException", get_class($e));
}
}
示例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;
}
示例3: __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);
}
}
示例4: __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);
}
}
示例5: __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);
}
}
示例6: __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);
}
}
示例7: __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);
}
}
示例8: __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);
}
}
示例9: __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
示例10: __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);
}
}
示例11: __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
示例12: __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);
}
}
示例13: __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
示例14: __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
示例15: __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);
}
}