delete() public méthode

Delete the site.
public delete ( ) : boolean
Résultat boolean
Exemple #1
0
 public function testElggSiteSaveAndDelete()
 {
     $guid = $this->site->save();
     $this->assertIsA($guid, 'int');
     $this->assertTrue($guid > 0);
     $this->assertIdentical(true, $this->site->delete());
 }
Exemple #2
0
 public function delete()
 {
     if ($acl = $this->getACL()) {
         delete_access_collection($acl);
     }
     if ($this->icontime) {
         $this->removeIcon();
     }
     return parent::delete();
 }