examples/file_storage/models/TaskFile.php
public static function taskGet($task_id)
    {
        $tasks = self::taskFileLoad();
        if (isset($tasks[$task_id])) {
            return $tasks[$task_id];
        }
        return false;
    }
public static function taskGet($task_id)
    {
        $tasks = self::taskFileLoad();
        if (isset($tasks[$task_id])) {
            return $tasks[$task_id];
        }
        return false;
    }
public static function taskGet ( $ task_id ) { $ tasks = self :: taskFileLoad ( ) ; if ( isset ( $ tasks [ $ task_id ] ) ) { return $ tasks [ $ task_id ] ; } return false ; }
Returns tasks with given id
@param int $task_id
@return TaskInterface
Returns tasks with given id