mysql_xdevapi\Collection
PHP Manual

Collection::getSchema

(No version information available, might only be in Git)

Collection::getSchemaGet schema object

说明

public Schema Object mysql_xdevapi\Collection::getSchema ( void )

Retrieve the schema object that contains the collection.

参数

此函数没有参数。

返回值

The schema object on success, or NULL if the object cannot be retrieved for the given collection.

范例

Example #1 mysql_xdevapi\Collection::getSchema() example

<?php

$schema 
$collection->getSchema();

?>

mysql_xdevapi\Collection
PHP Manual