To delete a row

Use and impacts of deleting a row using Del()

To delete one or several line(s) in a table that is desired, it is possible to use the method Del.

public function Del($primary_key_value = ") {} 

If the collector i18n exists (used for multilangage), the translated data of the deleted item will also be included.

Settings

  1. $primary_key_value : the Value of the primary key of the table or a table that includes several of these values

Example

$result = $this->collector['example']->del(115);
// OR
$result = $this->collector['example']->del(array(115, 116, 117)); 

The function's return

TRUE or FALSE depending on the success of the operations