public function isWritable()
        {
                if (file_exists($this->phpids_base.self::FILENAME_RULES) &&
                        is_writable($this->phpids_base.self::FILENAME_RULES) &&
                        file_exists($this->phpids_base.self::FILENAME_CONVERTER) &&
                        is_writable($this->phpids_base.self::FILENAME_CONVERTER)) {
                        return true;
                } else {
            return false;
                }

        }
public function isWritable()
        {
                if (file_exists($this->phpids_base.self::FILENAME_RULES) &&
                        is_writable($this->phpids_base.self::FILENAME_RULES) &&
                        file_exists($this->phpids_base.self::FILENAME_CONVERTER) &&
                        is_writable($this->phpids_base.self::FILENAME_CONVERTER)) {
                        return true;
                } else {
            return false;
                }

        }
public function isWritable ( ) { if ( file_exists ( $ this -> phpids_base . self :: FILENAME_RULES ) && is_writable ( $ this -> phpids_base . self :: FILENAME_RULES ) && file_exists ( $ this -> phpids_base . self :: FILENAME_CONVERTER ) && is_writable ( $ this -> phpids_base . self :: FILENAME_CONVERTER ) ) { return true ; } else { return false ; } }
Check for existing rules and converter and for write permissions

@return boolean returns true if both files are writable
Check for existing rules and converter and for write permissions