examples/file_storage/models/TaskFile.php
public static function taskFileLoad()
    {
        if (file_exists(self::$data_file)) {
            $data = file_get_contents(self::$data_file);
            $data = unserialize($data);
        }
        if (empty($data)) {
            $data = array();
        }

        return $data;
    }
public static function taskFileLoad()
    {
        if (file_exists(self::$data_file)) {
            $data = file_get_contents(self::$data_file);
            $data = unserialize($data);
        }
        if (empty($data)) {
            $data = array();
        }

        return $data;
    }
public static function taskFileLoad ( ) { if ( file_exists ( self :: $ data_file ) ) { $ data = file_get_contents ( self :: $ data_file ) ; $ data = unserialize ( $ data ) ; } if ( empty ( $ data ) ) { $ data = array ( ) ; } return $ data ; }
Reads file from disk and returns array of tasks
@return array
Reads file from disk and returns array of tasks