Check RT variable

@param obj $ios Result of IOS comunication

@return boolean
353377
protected function checkRtVariable($ios)
    {
        $successCode = array("000", "001");
        if (isset($this->getData['RT'])) {
            $returnCode = substr($this->getData['RT'], 0, 3);

            //000 and 001 are successful
            if (in_array($returnCode, $successCode)) {
                $this->backStatusArray['RESULT'] = true;
                $this->debugMessage[] = 'Return code: ' . $returnCode;
                return true;

                //all other unsuccessful
            } elseif ($this->getData['RT'] != "" && !in_array($returnCode, $successCode)) {
                $this->backStatusArray['RESULT'] = false;
                $this->errorMessage[] = 'Return code: ' . $returnCode;
                return false;

                //in case of WIRE we have no bank return code and return text value, so RT has to be empty
            } elseif ($this->getData['RT'] == "") {
                //check IOS ORDER_STATUS
                if (in_array(trim($ios->status['ORDER_STATUS']), $this->successfulStatus)) {
                    $this->backStatusArray['RESULT'] = true;
                    return true;
                }
                $this->backStatusArray['RESULT'] = false;
                $this->errorMessage[] = 'Empty RT and status is: ' . $ios->status['ORDER_STATUS'];
                return false;
            }
            $this->backStatusArray['RESULT'] = false;
            $this->errorMessage[] = 'RT content: failure!';
            return false;

        } elseif (!isset($this->getData['RT'])) {
            $this->backStatusArray['RESULT'] = false;
            $this->errorMessage[] = 'Missing variable: (RT)!';
            return false;
        }
        $this->backStatusArray['RESULT'] = false;
        $this->errorMessage[] = 'checkRtVariable: general error!';
        return false;
    }
842051
public function Equals( $obj )
	{
		if ( ! $obj instanceof TimeValue )
		{
			return false;
		}

		/**
		 * @var DateTimeValueBase $other
		 */
		$other = $obj;
		return $this->ToString( null ) == $other->ToString( null );
	}
1152359
protected function queryIsDone()
    {
        $result = false;

        $statReplyString = $this->fetchURL($this->pazpar2StatURL());
        $statReply = GeneralUtility::xml2array($statReplyString);

        if ($statReply) {
            // The progress variable is a string representing a number between
            // 0.00 and 1.00.
            // Casting it to int gives 0 as long as the value is < 1.
            $progress = (int)$statReply['progress'];
            $result = ($progress === 1);
            if ($result === true) {
                // We are done: note that and get the record count.
                $this->setDidRun(true);
                $this->setTotalResultCount($statReply['hits']);
            }
        } else {
            GeneralUtility::devLog('could not parse pazpar2 stat reply', 'pazpar2', 3);
        }

        return $result;
    }
457195
public function shouldBeLocal($variable)
    {
        if (isset($this->variables[$variable])) {
            if ($this->variables[$variable]) {
                return true;
            }
        }

        return false;
    }
531961
public boolean checkRead(TransactionImpl tx, Object obj)
    {
        if (hasReadLock(tx, obj))
        {
            return true;
        }
        LockEntry writer = getWriter(obj);
        if (writer.isOwnedBy(tx))
        {
            return true;
        }
        return false;
    }
861168
private function checkNow(string $storeVarName) : bool
    {
        $now = $this->microtimeFloat();
        $this->{$storeVarName} = $now;
        return true;
    }
594849
public function Equals($obj)
	{
		if ( ! $obj instanceof TokenValue )
		{
			return false;
		}

		/**
		 * @var TokenValue $other
		 */
		$other = $obj;
		return strcmp( $this->Value, $other->Value ) == 0;
	}
299591
public function equals($obj)
    {
        return (gettype($obj) === 'object' &&
            $obj instanceof self &&
            $obj->getX() === $this->getX() &&
            $obj->getY() === $this->getY());
    }
618492
public function checkViewExists($view)
    {
        if (!View::exists($view)) {
            if (Lang::has('resource-controller.viewnotfound')) {
                $message = trans('resource-controller.viewnotfound', ['view' => '$view']);
            } else {
                $message = 'Requested page couldn\'t be loaded because the view file is missing: '.$view;
            }

            throw new ResourceControllerException($message);
        }
    }
101552
public static function getByID($cID, $cvID = 'RECENT')
    {
        $entity = self::getLocaleFromHomePageID($cID);
        if ($entity) {
            $obj = parent::getByID($cID, $cvID);
            $obj->setLocale($entity);

            return $obj;
        }

        return false;
    }
912965
public function Equals( $obj )
	{
		if ( is_string( $obj ) )
		{
	        return $this->Value == $obj;
		}
		else if ( $obj instanceof AnyUriValue )
		{
			/**
			 * @var AnyUriValue $other
			 */
			$other = $obj;
	        return $this->Value == $other->Value;
		}

	    return false;
	}
615969
public function checkDns(&$result)
    {
        if ($this->deepWhois && empty($result['regrinfo']['domain']['nserver'])) {
            $ns = @dns_get_record($this->query['query'], DNS_NS);
            if (!is_array($ns)) {
                return;
            }
            $nserver = array();
            foreach ($ns as $row) {
                $nserver[] = $row['target'];
            }
            if (count($nserver) > 0) {
                $result['regrinfo']['domain']['nserver'] = $this->fixNameServer($nserver);
            }
        }
    }
535576
function(oTable) {
			if (!TableUtils.isVariableRowHeightEnabled(oTable)) {
				return false;
			}

			var iScrollRange = VerticalScrollingHelper.getScrollRange(oTable);
			var nScrollPosition = VerticalScrollingHelper.getScrollPosition(oTable);
			var iScrollRangeBugger = VerticalScrollingHelper.getScrollRangeBuffer(oTable);

			return iScrollRange - nScrollPosition <= iScrollRangeBugger;
		}
880883
public function Equals( $obj )
	{
		if ( ! $obj instanceof DurationValue )
		{
			return false;
		}

		/**
		 * @var DurationValue $other
		 */
	    $other = $obj;

		if ( $other->getIsZero() && $this->getIsZero())
			return true;

		if ( $this->getType() != $other->getType() ) return false;

		return $this->ToString() == $other->ToString();
	}
959705
public function Equals( $obj )
	{
		if ( ! $obj instanceof GYearMonthValue )
		{
			return false;
		}

		/**
		 * @var DateTimeValueBase $other
		 */
		$other = $obj;
		return $this->ToString( null ) == $other->ToString( null );
	}
70955
public function isRtl( $lang = null ) {
		static $rtlLanguages = null;

		$lang = $lang ? $this->normalizeLang( $lang ) : $this->getLang();

		if ( $rtlLanguages === null ) {
			$file = $this->localBaseDir . '/language/rtl.json';
			$rtlLanguages = json_decode( file_get_contents( $file ), true );
		}

		return in_array( $lang, $rtlLanguages );
	}
366795
public function equals($obj)
    {
        // TODO: optimize me with early outs
        if ($this === $obj) {
            return true;
        }

        if ((null === $obj) || !($obj instanceof AbstractCriterion)) {
            return false;
        }

        /** @var AbstractCriterion $crit */
        $crit = $obj;

        $isEquiv = (((null === $this->table && null === $crit->getTable())
            || (null !== $this->table && $this->table === $crit->getTable()))
            && $this->column === $crit->getColumn()
            && $this->comparison === $crit->getComparison())
        ;

        // check chained criterion

        $clausesLength = count($this->clauses);
        $isEquiv &= (count($crit->getClauses()) == $clausesLength);
        $critConjunctions = $crit->getConjunctions();
        $critClauses = $crit->getClauses();
        for ($i = 0; $i < $clausesLength && $isEquiv; $i++) {
            $isEquiv &= ($this->conjunctions[$i] === $critConjunctions[$i]);
            $isEquiv &= ($this->clauses[$i] === $critClauses[$i]);
        }

        if ($isEquiv) {
            $isEquiv &= $this->value === $crit->getValue();
        }

        return $isEquiv;
    }