Gc\Tab\Model::getProperties PHP Метод

getProperties() публичный Метод

Return properties
public getProperties ( ) : array
Результат 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

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