Gc\Document\Model::isPublished PHP Method

isPublished() public method

Test if status is equal to self::STATUS_ENABLE
public isPublished ( ) : boolean
return boolean
    public function isPublished()
    {
        return $this->getStatus() == self::STATUS_ENABLE;
    }

Usage Example

Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testIsPublished()
 {
     $this->object->setStatus(Model::STATUS_ENABLE);
     $this->assertTrue($this->object->isPublished());
 }
All Usage Examples Of Gc\Document\Model::isPublished