Get status stat.

@param \simplehtmldom_1_5\simple_html_dom $a_stat_area
@param string                             $type

@return array
519255
private function getStatStatus($a_stat_area, $type)
    {
        $temp_stat = [];
        $a_stat_status = $a_stat_area->find('ul[class=stats-status]', 0);
        if ($type == 'anime') {
            $temp_stat['watching'] = $this->getStatStatusCount($a_stat_status, 0);
            $temp_stat['completed'] = $this->getStatStatusCount($a_stat_status, 1);
            $temp_stat['on_hold'] = $this->getStatStatusCount($a_stat_status, 2);
            $temp_stat['dropped'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['plan_to_watch'] = $this->getStatStatusCount($a_stat_status, 4);
        } else {
            $temp_stat['reading'] = $this->getStatStatusCount($a_stat_status, 0);
            $temp_stat['completed'] = $this->getStatStatusCount($a_stat_status, 1);
            $temp_stat['on_hold'] = $this->getStatStatusCount($a_stat_status, 2);
            $temp_stat['dropped'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['plan_to_read'] = $this->getStatStatusCount($a_stat_status, 4);
        }

        $a_stat_status = $a_stat_area->find('ul[class=stats-data]', 0);
        $temp_stat['total'] = $this->getStatStatusCount($a_stat_status, 1);
        if ($type == 'anime') {
            $temp_stat['rewatched'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['episode'] = $this->getStatStatusCount($a_stat_status, 5);
        } else {
            $temp_stat['reread'] = $this->getStatStatusCount($a_stat_status, 3);
            $temp_stat['chapter'] = $this->getStatStatusCount($a_stat_status, 5);
            $temp_stat['volume'] = $this->getStatStatusCount($a_stat_status, 7);
        }

        return $temp_stat;
    }
1103454
public function getNumberOfEnabledPages($type)
    {
        return $this
            ->createQueryBuilder('p')
            ->select('COUNT(p)')
            ->where('p.enabled = :enabled')
            ->andWhere('p.type = :type')
            ->setParameters([
                'enabled' => true,
                'type' => $type,
            ])
            ->getQuery()
            ->getSingleScalarResult();
    }
539962
public function getLength($type = null) {
		$findConf = [
			'conditions' => [
				'completed IS' => null,
			],
		];
		if ($type !== null) {
			$findConf['conditions']['job_type'] = $type;
		}

		return $this->find('all', $findConf)->count();
	}
79994
public function getMapping($type = ''){
        $returnValue = array();

        if($type == 'area'){
            $returnValue = $this->areaMapping;
        }else{
            $returnValue = $this->mapping;
        }

        return (array) $returnValue;
    }
446312
public function get($type)
    {
        $sum = 0;
        $now = $this->getTimeInMilliseconds();

        for ($i = 0; $i < $this->rollingStatisticalWindowBuckets; $i++) {
            $bucketIndex = $this->getBucketIndex($i, $now);
            $sum += $this->stateStorage->getBucket($this->commandKey, $type, $bucketIndex);
        }

        return $sum;
    }
1167325
public static function articleClass(string $type, string $status = null)
    {
        switch ($type) {
            case 'correction':
            case 'editorial':
            case 'feature':
            case 'insight':
            case 'research-advance':
            case 'research-article':
            case 'research-communication':
            case 'retraction':
            case 'registered-report':
            case 'replication-study':
            case 'scientific-correspondence':
            case 'short-report':
            case 'tools-resources':
                if ('poa' === $status) {
                    $class = ArticlePoA::class;
                } else {
                    $class = ArticleVoR::class;
                }

                return $class;
        }

        return null;
    }
95633
public function getTicketStatus($statusStr)
    {
        static $statuses = false;

        if ($statuses === false) {
            $statuses = [];

            foreach (TicketMessageInterface::STATUSES as $id => $value) {
                $statuses[$id] = $this->translate($value);
            }
        }

        return \array_search($statusStr, $statuses);
    }
701449
public function getProductByStatus($status)
    {
        $result = $this->httpRaw(self::WECHAT_SHOP_STATUS_PRODUCT_GET_URL . 'access_token=' . $this->getAccessToken(), [
            'status' => $status
        ]);
        return isset($result['errmsg']) && $result['errmsg'] == 'success' ? $result['product_info'] : false;
    }
21267
protected function getLevelByType($type)
    {
        $level = 0;

        if (isset($this->availableLogtypes[$type])) {
            $level = $this->availableLogtypes[$type];
        }

        return $level;
    }
1058062
private function getType($name_area)
    {
        $type = $name_area->find('a', 0)->href;
        $type = explode('.php', $type);

        return substr($type[0], 1);
    }
431949
public function getStatusAttribute()
    {
        if ($this->isActive()) {
            return self::STATUS_ACTIVE;
        }

        if ($this->isCanceled()) {
            return self::STATUS_CANCELED;
        }

        if ($this->isEnded()) {
            return self::STATUS_ENDED;
        }
    }
495850
public function getStatistics(string $type): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/enterprise/stats/:type', $type));
    }
277118
function status( $asObject = false )
    {
        if ( $asObject )
            return eZOrderStatus::fetch( $this->StatusID );
        else
            return $this->StatusID;
    }
449732
public function newStatus($type = null)
    {
        $className = $this->getItemClass($type);
        $object    = new $className();
        /** @var Property $object */
        $object->setManager($this->getManager());
        $object->setField($this->getField());

        return $object;
    }
206044
public function getStatus()
    {
        $status_event = $this->call->startBatch([
            OP_RECV_STATUS_ON_CLIENT => true,
        ]);

        $this->trailing_metadata = $status_event->status->metadata;

        return $status_event->status;
    }
296953
public function getStatus() : array
    {
        return [
            'status'        => [
                'entries-stored' => \count($this->store),
                'accessed'       => $this->readCount,
                'removed'        => $this->removeCount,
                'written'        => $this->writeCount,
            ],
        ];
    }
808286
public function getStatus() {
		if (isset($_SESSION) && isset($_SESSION[self::SESSION_FIELD_STATUS])) {
			return $_SESSION[self::SESSION_FIELD_STATUS];
		}
		else {
			return null;
		}
	}