Пример #1
0
    /**
     * content of the middle column - this is the most important part
     */
    protected function column_col3()
    {
        // get the translation module
        $words = $this->getWords();
        echo '
<h3>The hello universe (advanced) middle column</h3>
<p>
Using the class "' . get_class($this) . '".<br>
Simple version in <a href="hellouniverse">hellouniverse</a>.<br>
More beautiful in <a href="hellouniverse/advanced">hellouniverse/advanced</a>!<br>
With tabs in <a href="hellouniverse/tab1">hellouniverse/tab1</a>!
</p>
<br>
<p>
A translated word (wordcode "Groups"):
' . $words->getFormatted('Groups') . '
</p>
        ';
        $model = new LinkModel();
        $comments = $model->getLinks();
        //var_dump($comments);
        $link = $model->getLinks(1, 95);
        $path = unserialize($link->path);
    }
Пример #2
0
    /**
     * content of the middle column - this is the most important part
     */
    protected function column_col3()
    {
        echo '
<h3>The hello universe middle column</h3>
using the class HellouniverseSimplePage.<br>
More beautiful in <a href="hellouniverse/advanced">hellouniverse/advanced</a>!<br>
With tabs in <a href="hellouniverse/tab1">hellouniverse/tab1</a>!
        ';
        $model = new LinkModel();
        $listitem = array('fromID' => '10', 'toID' => '11', 'degree' => '1', 'rank' => '1', 'path' => '2');
        var_dump($listitem);
        //$model->createLinkList($listitem);
        $comments = $model->getLinks();
        var_dump($comments);
        foreach ($comments as $comment) {
            echo "From: " . $comment->IdFromMember . " To: " . $comment->IdToMember . "<br>";
            $link = array('fromID' => "{$comment->IdFromMember}", 'toID' => "{$comment->IdToMember}", 'degree' => '1', 'rank' => '1', 'path' => "'({$comment->IdFromMember},{$comment->IdToMember})'");
            var_dump($link);
            $model->createLinkList($link);
        }
    }