public function set($file, $url, $title, $titles, $tocs, $ctime, array $depends)
    {
        foreach ($tocs as $toc) {
            foreach ($toc as $child) {
                $this->parents[$child] = $file;
                if (isset($this->entries[$child])) {
                    $this->entries[$child]['parent'] = $file;
                }
            }
        }

        $this->entries[$file] = array(
            'file' => $file,
            'url' => $url,
            'title' => $title,
            'titles' => $titles,
            'tocs' => $tocs,
            'ctime' => $ctime,
            'depends' => $depends
        );

        if (isset($this->parents[$file])) {
            $this->entries[$file]['parent'] = $this->parents[$file];
        }
    }
public function set($file, $url, $title, $titles, $tocs, $ctime, array $depends)
    {
        foreach ($tocs as $toc) {
            foreach ($toc as $child) {
                $this->parents[$child] = $file;
                if (isset($this->entries[$child])) {
                    $this->entries[$child]['parent'] = $file;
                }
            }
        }

        $this->entries[$file] = array(
            'file' => $file,
            'url' => $url,
            'title' => $title,
            'titles' => $titles,
            'tocs' => $tocs,
            'ctime' => $ctime,
            'depends' => $depends
        );

        if (isset($this->parents[$file])) {
            $this->entries[$file]['parent'] = $this->parents[$file];
        }
    }
public function set ( $ file , $ url , $ title , $ titles , $ tocs , $ ctime , array $ depends ) { foreach ( $ tocs as $ toc ) { foreach ( $ toc as $ child ) { $ this -> parents [ $ child ] = $ file ; if ( isset ( $ this -> entries [ $ child ] ) ) { $ this -> entries [ $ child ] [ 'parent' ] = $ file ; } } } $ this -> entries [ $ file ] = array ( 'file' => $ file , 'url' => $ url , 'title' => $ title , 'titles' => $ titles , 'tocs' => $ tocs , 'ctime' => $ ctime , 'depends' => $ depends ) ; if ( isset ( $ this -> parents [ $ file ] ) ) { $ this -> entries [ $ file ] [ 'parent' ] = $ this -> parents [ $ file ] ; } }
Sets the meta for url, giving the title, the modification time and
the dependencies list
Sets the meta for url giving the title the modification time and the dependencies list