protected function _getLimit($key = null, $default = null) {
		$result = (int)$default;
		if (empty($key)) {
			return $result;
		}

		$data = $this->getConfig('LdapSync.Limits.' . $key);
		if (($data === null) || !is_int($data)) {
			return $result;
		}

		$data = (int)$data;
		if ($data < 0) {
			return $result;
		}

		return $data;
	}
protected function _getLimit($key = null, $default = null) {
		$result = (int)$default;
		if (empty($key)) {
			return $result;
		}

		$data = $this->getConfig('LdapSync.Limits.' . $key);
		if (($data === null) || !is_int($data)) {
			return $result;
		}

		$data = (int)$data;
		if ($data < 0) {
			return $result;
		}

		return $data;
	}
protected function _getLimit ( $ key = null , $ default = null ) { $ result = ( int ) $ default ; if ( empty ( $ key ) ) { return $ result ; } $ data = $ this -> getConfig ( 'LdapSync.Limits.' . $ key ) ; if ( ( $ data === null ) || ! is_int ( $ data ) ) { return $ result ; } $ data = ( int ) $ data ; if ( $ data < 0 ) { return $ result ; } return $ data ; }
Return value of limit by configuration key.

@param string $key Configuration key
@param int $default Default value of limit
@return int Value of limit
Return value of limit by configuration key .