controllers/commands/Page.php
protected function addPage()
    {
        if (!$this->isError()) {
            $id = $this->page->add($this->getSubmitted());
            if (empty($id)) {
                $this->errorAndExit($this->text('Unexpected result'));
            }
            $this->line($id);
        }
    }
protected function addPage()
    {
        if (!$this->isError()) {
            $id = $this->page->add($this->getSubmitted());
            if (empty($id)) {
                $this->errorAndExit($this->text('Unexpected result'));
            }
            $this->line($id);
        }
    }
protected function addPage ( ) { if ( ! $ this -> isError ( ) ) { $ id = $ this -> page -> add ( $ this -> getSubmitted ( ) ) ; if ( empty ( $ id ) ) { $ this -> errorAndExit ( $ this -> text ( 'Unexpected result' ) ) ; } $ this -> line ( $ id ) ; } }
Add a new page
Add a new page