examples/file_storage/models/TaskFile.php
public function taskDelete()
    {
        $tasks = self::taskFileLoad();

        if (isset($tasks[$this->task_id])) {
            unset($tasks[$this->task_id]);

            return self::taskFileSave($tasks);
        }
        return false;
    }
public function taskDelete()
    {
        $tasks = self::taskFileLoad();

        if (isset($tasks[$this->task_id])) {
            unset($tasks[$this->task_id]);

            return self::taskFileSave($tasks);
        }
        return false;
    }
public function taskDelete ( ) { $ tasks = self :: taskFileLoad ( ) ; if ( isset ( $ tasks [ $ this -> task_id ] ) ) { unset ( $ tasks [ $ this -> task_id ] ) ; return self :: taskFileSave ( $ tasks ) ; } return false ; }
Deletes the task
@return mixed
Deletes the task