PHPDaemon\Clients\IMAP\Connection::fetch PHP Метод

fetch() защищенный Метод

protected fetch ( array $items, string $from, string $to = null, boolean $uid = false, string $tag = self::TAG_FETCH )
$items array
$from string
$to string
$uid boolean
$tag string
    protected function fetch($items, $from, $to = null, $uid = false, $tag = self::TAG_FETCH)
    {
        if (is_array($from)) {
            $set = implode(',', $from);
        } elseif ($to === null) {
            $set = (int) $from;
        } elseif ($to === INF) {
            $set = (int) $from . ':*';
        } else {
            $set = (int) $from . ':' . (int) $to;
        }
        $this->writeln($tag . ($uid ? ' UID' : '') . " FETCH {$set} " . $this->escapeList((array) $items));
    }