Esempio n. 1
0
 public function delete()
 {
     // no need to retrieve - the key is the file name
     $fileName = $this->config->item('page_directory') . $this->get('fileName');
     if (file_exists($fileName)) {
         unlink($fileName);
     }
     log_message('error', 'page deleting');
     return Crud::delete();
 }
Esempio n. 2
0
 public function delete($data)
 {
     if (!is_array($data)) {
         $id = intval($data);
         $data = array('id' => $id);
     }
     if (!isset($data['id']) or $data['id'] == 0) {
         return false;
     }
     if (!$this->has_permission($data)) {
         return;
     }
     return parent::delete($data);
 }
Esempio n. 3
0
 public function delete()
 {
     error_log(__METHOD__);
     util::acl(1);
     parent::delete();
 }
Esempio n. 4
0
 public function delete()
 {
     foreach ($this->_pages->getPageKeys() as $page) {
         $this->_pages->removePage($page);
     }
     return Crud::delete();
 }
 /** @expectedException \Exception */
 public function test_delete()
 {
     /** === Call and asserts  === */
     $this->obj->delete([]);
 }
Esempio n. 6
0
<?php 
include_once 'model.php';
$readInstantiate = new Crud();
$getData = $readInstantiate->read();
//var_dump($getData);
if (isset($_REQUEST['del_id'])) {
    $readInstantiate->delete($_REQUEST['del_id']);
    header("location : read.php");
}
?>
<table>
	<tr>
		<td>S.No.</td>
		<td>Name</td>
		<td>Address</td>
		<td>Phone</td>
		<td>Gender</td>
	</tr>
	<?php 
$i = 1;
?>
	<?php 
foreach ($getData as $key => $value) {
    ?>
	<tr>
		<td><?php 
    echo $i++;
    ?>
</td>
		<td><?php