本文整理汇总了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);
}