Gc\Tab\Model::getProperties PHP Method

getProperties() public method

Return properties
public getProperties ( ) : array
return array
    public function getProperties()
    {
        if ($this->getData('properties') === null) {
            $propertiesCollection = new Property\Collection();
            $propertiesCollection->load($this->getDocumentTypeId(), $this->getId());
            $this->setData('properties', $propertiesCollection->getProperties());
        }
        return $this->getData('properties');
    }

Usage Example

Beispiel #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetProperties()
 {
     $this->assertInternalType('array', $this->object->getProperties());
 }