delete() public method

Delete the site.
public delete ( ) : boolean
return boolean
コード例 #1
0
ファイル: ElggSiteTest.php プロジェクト: elgg/elgg
 public function testElggSiteSaveAndDelete()
 {
     $guid = $this->site->save();
     $this->assertIsA($guid, 'int');
     $this->assertTrue($guid > 0);
     $this->assertIdentical(true, $this->site->delete());
 }
コード例 #2
0
ファイル: Subsite.php プロジェクト: pleio/subsite_manager
 public function delete()
 {
     if ($acl = $this->getACL()) {
         delete_access_collection($acl);
     }
     if ($this->icontime) {
         $this->removeIcon();
     }
     return parent::delete();
 }