concrete/src/Permission/IPService.php
public function getRangeByID($id)
    {
        $result = null;
        if ($id) {
            $rs = $this->connection->executeQuery(
                'SELECT * FROM LoginControlIpRanges WHERE lcirID = ? LIMIT 1',
                [$id]
            );
            $row = $rs->fetch();
            $rs->closeCursor();
            if ($row !== false) {
                $result = IPRange::createFromRow($row, $this->connection->getDatabasePlatform()->getDateTimeFormatString());
            }
        }

        return $result;
    }
public function getRangeByID($id)
    {
        $result = null;
        if ($id) {
            $rs = $this->connection->executeQuery(
                'SELECT * FROM LoginControlIpRanges WHERE lcirID = ? LIMIT 1',
                [$id]
            );
            $row = $rs->fetch();
            $rs->closeCursor();
            if ($row !== false) {
                $result = IPRange::createFromRow($row, $this->connection->getDatabasePlatform()->getDateTimeFormatString());
            }
        }

        return $result;
    }
public function getRangeByID ( $ id ) { $ result = null ; if ( $ id ) { $ rs = $ this -> connection -> executeQuery ( 'SELECT * FROM LoginControlIpRanges WHERE lcirID = ? LIMIT 1' , [ $ id ] ) ; $ row = $ rs -> fetch ( ) ; $ rs -> closeCursor ( ) ; if ( $ row !== false ) { $ result = IPRange :: createFromRow ( $ row , $ this -> connection -> getDatabasePlatform ( ) -> getDateTimeFormatString ( ) ) ; } } return $ result ; }
Find already defined range given its record ID.

@param int $id

@return IPRange|null
Find already defined range given its record ID .