本文整理匯總了PHP中EasyRdf_Namespace::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP EasyRdf_Namespace::delete方法的具體用法?PHP EasyRdf_Namespace::delete怎麽用?PHP EasyRdf_Namespace::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類EasyRdf_Namespace
的用法示例。
在下文中一共展示了EasyRdf_Namespace::delete方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: testDeleteNonStringNamespace
public function testDeleteNonStringNamespace()
{
$this->setExpectedException('InvalidArgumentException', '$prefix should be a string and cannot be null or empty');
EasyRdf_Namespace::delete($this);
}
示例2: tearDown
public function tearDown()
{
EasyRdf_Namespace::reset();
EasyRdf_Namespace::delete('example');
}
示例3: parse_query
public static function parse_query($wp)
{
if (!array_key_exists('__datadump', $wp->query_vars)) {
return;
}
//$format = $this->map_mime_request();
include 'library/EasyRdf.php';
include 'library/object-handlers.php';
foreach ($this->standard_namespaces as $key => $value) {
EasyRdf_Namespace::set($key, $value);
}
EasyRdf_Namespace::delete("rss");
$graph = new EasyRdf_Graph();
//$lh_rdf_object_handlers = new LH_rdf_object_handlers($format);
die;
}
示例4: tearDown
public function tearDown()
{
EasyRdf_Namespace::delete('ex');
}
示例5: tearDown
public function tearDown()
{
EasyRdf_Literal::deleteDatatypeMapping('ex:mytype');
EasyRdf_Namespace::delete('ex');
}
示例6: testDeleteNonStringNamespace
public function testDeleteNonStringNamespace()
{
$this->setExpectedException('InvalidArgumentException');
EasyRdf_Namespace::delete($this);
}