src/Luminous/Scanners.php
public function addScanner($languageName, $scanner, $langDescription)
    {
        $dummy = $scanner === null;
        $d = array();

        $insert = array(
            'scanner'      => $scanner,
            'description'  => $langDescription
        );
        if (!is_array($languageName)) {
            $languageName = array($languageName);
        }
        foreach ($languageName as $l) {
            $this->lookupTable[$l] = $insert;
            if (!$dummy) {
                $this->addDescription($langDescription, $l);
            }
        }
    }
public function addScanner($languageName, $scanner, $langDescription)
    {
        $dummy = $scanner === null;
        $d = array();

        $insert = array(
            'scanner'      => $scanner,
            'description'  => $langDescription
        );
        if (!is_array($languageName)) {
            $languageName = array($languageName);
        }
        foreach ($languageName as $l) {
            $this->lookupTable[$l] = $insert;
            if (!$dummy) {
                $this->addDescription($langDescription, $l);
            }
        }
    }
public function addScanner ( $ languageName , $ scanner , $ langDescription ) { $ dummy = $ scanner === null ; $ d = array ( ) ; $ insert = array ( 'scanner' => $ scanner , 'description' => $ langDescription ) ; if ( ! is_array ( $ languageName ) ) { $ languageName = array ( $ languageName ) ; } foreach ( $ languageName as $ l ) { $ this -> lookupTable [ $ l ] = $ insert ; if ( ! $ dummy ) { $ this -> addDescription ( $ langDescription , $ l ) ; } } }
Adds a scanner into the table, or overwrites an existing scanner.

@param language_name may be either a string or an array of strings, if
multiple languages are to use the same scanner
@param $scanner the name of the LuminousScanner object as string, (not an
actual instance!). If the file is actually a dummy file (say for includes),
leave $scanner as @c null.
@param lang_description a human-readable description of the language.
Adds a scanner into the table or overwrites an existing scanner .