Prints a single "quick" feedback item and increments
the total number of processed cases and the column
position.

@param $item
776009
protected function printFeedbackItem(string $item)
    {
        echo $item;
        ++$this->column;
        ++$this->casesProcessed;
        if ($this->column === $this->maxColumn) {
            echo $this->getProgress();
            $this->println();
        }
    }
613863
private function doGetAction($repository, $item)
    {
        $this->output->writeln($this->serialize($repository->get($item)));
    }
630019
protected function removeItem($item)
    {
        if (is_string($item)) {
            $item = $this->findItem($item);
        }

        echo "    > removing $item->name ...";
        $time = microtime(true);
        $this->authManager->remove($item);
        echo ' done (time: ' . sprintf('%.3f', microtime(true) - $time) . "s)\n";
    }
641995
private function _renderItemSeparated (\stdClass $item) {
		$result = '<link rel="stylesheet"';
		if ($item->media !== 'all') $result .= ' media="' . $item->media . '"';
		if (!$item->render && self::$fileChecking) {
			$fullPath = $this->getAppRoot() . $item->path;
			if (!file_exists($fullPath)) {
				$this->log("File not found in CSS view rendering process ('$fullPath').", 'error');
			}
		}
		$result .= ' href="' . $item->href . '" />';
		return $result;
	}
655596
function($item, preventScroll) {
            if (preventScroll) {
                var scrollLeft = Garnish.$doc.scrollLeft(),
                    scrollTop = Garnish.$doc.scrollTop();
                $item.focus();
                window.scrollTo(scrollLeft, scrollTop);
            }
            else {
                $item.focus();
            }

            this.$focusedItem = $item;
            this.trigger('focusItem', {item: $item});
        }
1212553
protected function setFound($item, $item2)
    {
        if (isset($this->missing[$item])) {
            unset($this->missing[$item][$item2]);
            if (empty($this->missing[$item])) {
                unset($this->missing[$item]);
            }
        }
    }
1117046
public function iGoToMenuItem(string $item)
    {
        $adminMenu = $this->admin_page->getMenu();
        $adminMenu->clickMenuItem($item);
    }
306449
public function refreshIdentifiers(Item $item)
    {
        // refresh self id
        $item->refreshUuid();

        // refresh objects ids
        foreach ($item->getObjects() as $object) {
            $object->refreshUuid();
        }

        // refresh hints ids
        foreach ($item->getHints() as $hint) {
            $hint->refreshUuid();
        }

        if (1 === preg_match('#^application\/x\.[^/]+\+json$#', $item->getMimeType())) {
            // it's a question
            $definition = $this->itemDefinitions->get($item->getMimeType());
        } else {
            // it's a content
            $definition = $this->itemDefinitions->get(ItemType::CONTENT);
        }

        $definition->refreshIdentifiers($item->getInteraction());
    }
1128088
function Remove($item)
    {
        $prev = $this->provider->PreviousOf($item);
        $next = $this->provider->NextOf($item);
        if ($next)
        {
            $this->provider->SetPrevious($next, $prev);
        }
        $this->provider->Delete($item);
        if ($next) 
        {
            $this->provider->Save($next);
        }
    }
427154
public function complete_form_element($item, $form) {
        $form->add_form_element($item,
            ['static',
                $item->typ.'_'.$item->id,
                '',
                html_writer::empty_tag('hr', ['class' => 'feedback_pagebreak', 'id' => 'feedback_item_' . $item->id])
            ]);
    }
709685
public function addItem(Item $item) {
        if(empty($item->title) && empty($item->description)) {
            throw new Exception('At least one of title or description must be defined.');
        }

        $this->items[] = $item;
    }
931078
protected function updateCartQuantityCheckout($sku, array $item)
    {
        if (isset($this->data_cart['items'][$sku]['cart_id'])) {
            $cart_id = $this->data_cart['items'][$sku]['cart_id'];
            $this->cart->update($cart_id, array('quantity' => $item['quantity']));
        }
    }
534747
protected function checkIfProtected($item)
    {
        $this->performProtectedCheck($item);

        if (!is_string($item)) {
            return;
        }

        $prefix = $item;
        while (false !== $pos = strrpos($prefix, '.')) {
            $prefix = substr($item, 0, $pos);
            $this->performProtectedCheck($prefix);
            $prefix = rtrim($prefix, '.');
        }
    }
163197
public void addItem(T item) {
        mListItems.add(item);
        notifyItemInserted(mListItems.indexOf(item));
    }
385430
public function doLog( common_log_Item $item)
    {
        
    	$doc = new DOMDocument();
		$doc->preserveWhiteSpace = false;
		$doc->formatOutput = true;
		$success = @$doc->load($this->filename);
		if (!$success) {
            $doc->loadXML('<events></events>');
        }

		$event_element = $doc->createElement("event");

		$message = $doc->createElement("description");
		$message->appendChild(
				$doc->createCDATASection($item->getDescription())
		);
		$event_element->appendChild($message);
		
		$file = $doc->createElement("file");
		$file->appendChild(
				$doc->createCDATASection($item->getCallerFile())
		);
		$event_element->appendChild($file);
		
		$line = $doc->createElement("line");
		$line->appendChild(
				$doc->createCDATASection($item->getCallerLine())
		);
		$event_element->appendChild($line);
		
		$datetime = $doc->createElement("datetime");
		$datetime->appendChild(
				$doc->createCDATASection($item->getDateTime())
		);
		$event_element->appendChild($datetime);
		
		$severity = $doc->createElement("severity");
		$severity->appendChild(
				$doc->createCDATASection($item->getSeverity())
		);
		$event_element->appendChild($severity);

		
		$doc->documentElement->appendChild($event_element);
		@$doc->save($this->filename);
        
    }
124621
protected function add_item_label($item, $element) {
        if (strlen($item->label) && ($this->mode == self::MODE_EDIT || $this->mode == self::MODE_VIEW_TEMPLATE)) {
            $name = $element->getLabel();
            $name = '('.format_string($item->label).') '.$name;
            $element->setLabel($name);
        }
    }
957420
public function setItem($item)
    {
        $this->items[] = $item->expose();

        $this->totalWishlistValue += $item->getTotalValueOfProduct();
    }