examples/file_storage/models/TaskFile.php
public static function find($task_ids)
    {
        if (!is_array($task_ids)) {
            $task_ids = array($task_ids);
        }
        $tasks = self::getAll();
        foreach ($tasks as $key => $task) {
            /**
             * @var self $task
             */
            if (!in_array($task->task_id, $task_ids)) {
                unset($tasks[$key]);
            }
        }
        return $tasks;
    }
public static function find($task_ids)
    {
        if (!is_array($task_ids)) {
            $task_ids = array($task_ids);
        }
        $tasks = self::getAll();
        foreach ($tasks as $key => $task) {
            /**
             * @var self $task
             */
            if (!in_array($task->task_id, $task_ids)) {
                unset($tasks[$key]);
            }
        }
        return $tasks;
    }
public static function find ( $ task_ids ) { if ( ! is_array ( $ task_ids ) ) { $ task_ids = array ( $ task_ids ) ; } $ tasks = self :: getAll ( ) ; foreach ( $ tasks as $ key => $ task ) { /**
             * @var self $task
             */ if ( ! in_array ( $ task -> task_id , $ task_ids ) ) { unset ( $ tasks [ $ key ] ) ; } } return $ tasks ; }
Returns array of tasks with specified ids
@param array $task_ids array of task ids
@return array
Returns array of tasks with specified ids