phpLDAPadmin
[ class tree: phpLDAPadmin ] [ index: phpLDAPadmin ] [ all elements ]

Class: LdifReader

Source Location: /lib/ldif_functions.php

Class Overview

Reader
   |
   --FileReader
      |
      --LdifReader

Main parser of the ldif file


Methods


Inherited Methods

Class: FileReader

FileReader::FileReader()
Constructor of the FileReader class
FileReader::close()
Close the handler
FileReader::eof()
Returns true if we reached the end of the file.
FileReader::_nextLine()
Helper method to switch to the next line

Class: Reader

Reader::fetchEntryArray()
Return the current entry as an array
Reader::fetchEntryObject()
Return the current entry as an object
Reader::fetchEntryRaw()
Return the entry as it is.
Reader::getCurrentLines()
Returns the lines that generated the Ldif Entry.
Reader::getLdapLdifReaderException()
Return the exception raised during processing the file
Reader::getWarningMessage()
Reader::hasRaisedException()
Reader::hasVersionNumber()
Check if the ldif version is present in the ldif
Reader::nextLines()
Get the lines of the next entry
Reader::readEntry()
Return a ldif entry object
Reader::setLdapLdifReaderException()
Associate the ldif reader with a exception which occurs during proceesing the file.
Reader::_hasMoreEntries()
Private method to check if there is more entries in the file
Reader::_isBlankLine()
Check if is the current line is a blank line.
Reader::_isCommentLine()
Check if it's a ldif comment line.
Reader::_isDnLine()
Check if the current line is a line containing the distinguished name of an entry.
Reader::_ldifHasError()
Helper method which return the value of the instance member $_error
Reader::_LdifReader()
Private constructor of the LDIFReader class.

Class Details

[line 904]
Main parser of the ldif file



[ Top ]


Class Methods


constructor LdifReader [line 911]

LdifReader LdifReader( String $path2File, [boolean $continuous_mode = 0])

Constructor of the class



Parameters:

String   $path2File   path of the ldif file to read
boolean   $continuous_mode   1 if continuous mode operation, 0 otherwise

[ Top ]

method done [line 922]

void done( )

Close the ldif file



[ Top ]


Documentation generated on Sun, 30 Dec 2007 17:50:18 -0800 by phpDocumentor 1.3.1