Gc\Document\Model::showInNav PHP Méthode

showInNav() public méthode

Define if document is show in navigation
public showInNav ( boolean $isShow = null ) : boolean
$isShow boolean Optional
Résultat boolean
    public function showInNav($isShow = null)
    {
        if ($isShow !== null) {
            $this->setData('show_in_nav', $isShow);
        }
        return (bool) $this->getData('show_in_nav');
    }

Usage Example

Exemple #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testShowInNav()
 {
     $this->object->showInNav(true);
     $this->assertTrue($this->object->showInNav());
 }
All Usage Examples Of Gc\Document\Model::showInNav