IPAccess::IPAccess PHP Method

IPAccess() public method

The IP access group is assigned to a reader.
public IPAccess ( integer $p_userId = null, integer $p_startIP = null, integer $p_addresses = null )
$p_userId integer
$p_startIP integer
$p_addresses integer
    public function IPAccess($p_userId = null, $p_startIP = null, $p_addresses = null)
    {
        parent::DatabaseObject($this->m_columnNames);
        $this->m_data['IdUser'] = $p_userId;
        $startIP = null;
        if (!is_null($p_startIP)) {
            $startIP = $p_startIP;
            if (!is_array($startIP)) {
                $startIP = $this->__string2array($startIP);
            }
            $startIP = $this->__array2int($startIP);
        }
        $this->m_data['StartIP'] = $startIP;
        $this->m_data['Addresses'] = $p_addresses;
        if ($this->keyValuesExist()) {
            $this->fetch();
        }
    }