Quick shortcut to get a champions information by $itemId

@param int $itemId
@return Champion|null
977787
public function getItem($itemId)
	{
		if (isset($this->info['data'][$itemId]))
		{
			return $this->info['data'][$itemId];
		}

		return null;
	}
588925
public function getItemAccessControls(string $itemId, string $userId = ''):array
    {
        if (! empty($userId)) {
            return $this->get("AccessControls(principalid={$userId},itemid={$itemId})");
        } else {
            return $this->get("Items({$itemId})/AccessControls");
        }
    }
787043
public function get_active_instances($itemid) {
        global $DB;
        $conditions = array('definitionid'  => $this->definition->id,
                    'itemid' => $itemid,
                    'status'  => gradingform_instance::INSTANCE_STATUS_ACTIVE);
        $records = $DB->get_recordset('grading_instances', $conditions);
        $rv = array();
        foreach ($records as $record) {
            $rv[] = $this->get_instance($record);
        }
        $records->close();
        return $rv;
    }
898459
public function items_relationmap($itemtype, $itemid = 261) {

        $object = Entity::find($itemid);

        return View::make('admin.dashboard_items_relationmap', compact('object', 'sitestats', 'volunteers'))->with('task', 'dashboard')->with('itemkind', 'admin');
    }
672224
public function getCheckout($itemId)
    {
        $item = Item::findOrFail($itemId);

        if ($item->seller->userId == Auth::user()->userId) {
            return redirect($item->url)->withErrors([
                'You cannot purchase your own items.'
            ]);
        }

        if ($item->auction && !$item->isActive() && $item->purchases->count()) {
            return redirect('/pay/' . $item->purchases->first()->purchaseId);
        }

        // Check for unpaid item
        if ($unpaid = $item->purchases()->where('user_id', Auth::user()->userId)->where('paid', 0)->first()) {
            return redirect('/pay/' . $unpaid->purchaseId);
        }

        if (!$item->isActive() && !$item->auction) {
            return redirect($item->url)->withErrors([
                'This item has ended.'
            ]);
        }

        if ($item->isActive() && !$item->hasFixed()) {
            return redirect($item->url)->withErrors([
                'This auction has no fixed price, so cannot be bought outright.'
            ]);
        }

        if (!$item->isActive() && $item->auction && !$item->winningBid) {
            return redirect($item->url)->withStatus(
                'Please wait while this auction is processed.'
            );
        }

        return view('mustard::purchase.checkout', [
            'countries' => Iso3166::all(),
            'item' => $item,
            'item_total' => ($item->auction && !$item->isActive())
                ? $item->biddingPrice
                : $item->fixedPrice,
        ]);
    }
382492
public function get_item($id)
	{
		// Element empty!
		if (count($this->_items) === 0)
			return FALSE;

		if (array_key_exists($id, $this->_items))
		{ // By ID
			return $this->_items[$id];
		} else
		{ // By route
			$path = $this->get_tree_index(Route::get($id));

			if($path != false)
			{
				$levels = count($path);

				$item = $this->_items[$path[0]];

				if($levels > 1)
				{
					for($i=1; $i<$levels; $i++)
					{
						$item = $item->siblings[$path[$i]];
					}
				}
				return $item;
			}
		}
		return FALSE;
	}
309608
public function championById($championId)
	{
		$info = $this->request('champion/'.$championId);

		return $this->attachStaticDataToDto(new Champ($info));
	}
1088894
public function getChampion($championId, $data = null)
	{
		$params = $this->setUpParams('champion', $championId, $data, 'champData', 'champData');
		$array  = $this->makeRequest('champion', $championId, $params);

		if ($this->appendId($championId))
		{
			return new staticChampion($array);
		}
		else
		{
			return new ChampionList($array);
		}
	}
305993
public function getRecommendedItems($userId, $itemCount = 3)
    {
        $response = $this->sendQuery(['user' => $userId, 'num' => intval($itemCount)]);

        return $response;
    }
918948
public function getItem($id)
    {
        foreach ($this->items as $item) {
            if ($item->getId() == $id) {
                return ($item);
            }
        }

        return null;
    }
10251
public function getItem($itemType, $id, array $queryString = []) {
      $options = [];
      if ($queryString) {
         $options['query'] = $queryString;
      }
      $response = $this->client->request('get', $itemType . '/' . $id, $options);
      return [
         'statusCode' => $response->getStatusCode(),
         'body' => $response->getBody()->getContents(),
      ];
   }
164456
public function getItemById(string $itemId, bool $getChildren = false):array
    {
        $parameters = $getChildren === true ? '$expand=Children' : '';

        return $this->get("Items({$itemId})?{$parameters}");
    }
144814
public function getCopyRecordByItemNumber ($itemNumber)
    {
        foreach ($this->_records as $record) {
            if ($record->getItemNumber() === $itemNumber) {
                return $record;
            }
        }
        return null;
    }
1309034
public static function getComments($itemId){
        $comments = Comment::where('item_id', $itemId)->orderBy('parent_id', 'asc')->get();

        foreach ($comments as $comment){
            $userId = $comment->user_id;
            $user = self::getUser($userId);
            $comment->name = $user['name'];
            $comment->email = $user['email'];
            $comment->url = $user['url'];

            if($user['avatar'] == 'gravatar'){
                $hash = md5(strtolower(trim($user['email'])));
                $comment->avatar = "http://www.gravatar.com/avatar/$hash?d=identicon";
            }
        }

        return $comments;
    }
18992
public static function getItemDescriptionByKey($itemKey)
    {
        $itemKey = strtoupper($itemKey);
        if (isset(self::$availableItemKeysList[$itemKey])) {
            return self::$availableItemKeysList[$itemKey];
        } else {
            return false;
        }
    }
958627
public function getItem($cacheId, & $success = null)
    {
        $success = false;

        if (!$this->hasItem($cacheId)) {
            return null;
        }

        $path = $this->keyPath($cacheId);

        /** @var $value Helper\StorageObject */
        $value = $this->extract(FileUtils::read($path));
        if ($value === null) {
            return null;
        }

        $success = true;

        return $value;
    }
103438
protected function findItem($tableName,$itemId)
  {
    $tableAlias = $this->getTableAlias($tableName);

    $qb = $this->dbConn->createQueryBuilder();
    $qb->select($this->getTableSelects($tableName,$tableAlias));
    $qb->from($tableName,$tableAlias);

    $primaryKeyName = $this->getTablePrimaryKey($tableName);

    $qb->andWhere($primaryKeyName . ' = :' . $primaryKeyName);

    $qb->setParameter($primaryKeyName,$itemId);

    $rows = $qb->execute()->fetchAll();

    return count($rows) === 1 ? $this->extractItem($tableAlias . '__',$rows[0]) : null;
  }