Start profiling

The default profiling ID will be used when none is given.

@param  string $id Identifies this profiling operation
@return int
484185
public function start($id = self::DEFAULT_ID)
    {
        $microtime = false;
        if (self::$enabled) {
            $id = (!$id) ? self::DEFAULT_ID : (string)$id;
            if (isset($this->start[$id])) {
                $this->toss(
                    "Profiling",
                    "Profiling has already started for identifier '{0}'.",
                    $id
                );
            }
            
            $this->start[$id] = $microtime = microtime(true);
        }
        
        return $microtime;
    }
1059444
public function run($id)
    {
        $model = $this->getModel($id);
        
        if ($model->restore()) {
            $this->addSuccessFlash();
        }

        return $this->redirect($model);
    }
745452
public function delete($id = null)
    {
        // If an ID is passed to the method, we will set the where clause to check
        // the ID to allow developers to simply and quickly remove a single row
        // from their database without manually specifying the where clauses.
        if (!is_null($id)) {
            $this->where('_id', '=', $id);
        }

        $wheres = $this->compileWheres();
        $result = $this->collection->deleteMany($wheres);

        if (1 == (int) $result->isAcknowledged()) {
            return $result->getDeletedCount();
        }

        return 0;
    }
1325216
public function findOneById($id)
    {
        $id = $this->idToMongo($id);

        if ($this->identityMap->has($id)) {
            return $this->identityMap->get($id);
        }

        return $this->createQuery(array('_id' => $id))->one();
    }
1348550
public function setCurrent($id)
    {
        $this->pointer = array_search($id, $this->ids);
        return $this->pointer;
    }
506517
protected function doFetch($id)
	{
		$cached = $this->cache->load($id);
		return $cached === NULL ? FALSE : $cached;
	}
1036396
public function initialized($id)
    {
        $id = $this->normalizeId($id);

        if (isset($this->privates[$id])) {
            @trigger_error(sprintf('Checking for the initialization of the "%s" private service is deprecated since Symfony 3.4 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
        }

        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        if ('service_container' === $id) {
            return false;
        }

        return isset($this->services[$id]);
    }
292244
public static function setCurrentID($id)
    {
        $type = self::getType();
        $appID = App::getCurrentID();
        if (array_key_exists($id, self::$instances[$appID][$type])) {
            self::$id = $id;

            return true;
        }

        return false;
    }
1273171
public function getParameterByID($id)
    {
        $param = current(array_filter($this->params, function (Param $param) use ($id) {
            return ($param->id === $id);
        }));

        return ($param) ? $param : null;
    }
65625
public function remove_shortcut($id): ?int
  {
    if ( \bbn\str::is_uid($id) ){
      return $this->pref->delete_bit($id);
    }
    return null;
  }
391088
public function loadOneById($id)
    {
        $stmt = $this->getMatchOneByIdCypher($id);
        $result = $this->_em->getDatabaseDriver()->run($stmt->text(), $stmt->parameters());
        $hydrator = $this->_em->getEntityHydrator($this->_className);
        $entities = $hydrator->hydrateAll($result);

        return count($entities) === 1 ? $entities[0] : null;
    }
757895
public function setId($id)
    {
       	if ($id !== null && is_numeric($id)) {
            $id = (int) $id;
        }
        $this->id = $id;

        return $this;
    }
951764
public static function findThreadsCount($id)
    {
        $cache = Podium::getInstance()->podiumCache->getElement('user.threadscount', $id);
        if ($cache === false) {
            $cache = (new Query)->from(Thread::tableName())->where(['author_id' => $id])->count();
            Podium::getInstance()->podiumCache->setElement('user.threadscount', $id, $cache);
        }
        return $cache;
    }
1148281
public static function setCurrentID($id)
    {
        if (array_key_exists($id, self::$instances)) {
            self::$id = $id;

            return true;
        }

        return false;
    }
557996
public static function getInstance($id = 'default')
    {
        if (!isset(static::$instances[$id])) {
            static::$instances[$id] = new self();
        }
        
        return static::$instances[$id];
    }
984586
public function run($id)
    {
        if ((int)$this->direction === self::UP) {
            return $this->moveUp($id);
        } else {
            return $this->moveDown($id);
        }
    }
787609
protected function check4details($id)
    {
        $objC4D = \Database::getInstance()->prepare("SELECT count(`id`)  AS num
                                                     FROM `tl_dlstatdets`
                                                     WHERE `pid`=?")
                                          ->execute($id);
        return $objC4D->num;
    }