lithium\data\Entity::export PHP Method

export() public method

public export ( array $options = [] )
$options array
    public function export(array $options = array())
    {
        return array('exists' => $this->_exists, 'data' => $this->_data, 'update' => $this->_updated, 'increment' => $this->_increment);
    }

Usage Example

Example #1
0
 public function testPropertyAccess()
 {
     $entity = new Entity(array('model' => 'lithium\\tests\\mocks\\data\\MockPost', 'exists' => false));
     $this->assertEqual('lithium\\tests\\mocks\\data\\MockPost', $entity->model());
     $this->assertFalse($entity->exists());
     $entity = new Entity(array('exists' => true));
     $this->assertTrue($entity->exists());
     $expected = array('exists' => true, 'data' => array(), 'update' => array(), 'increment' => array());
     $this->assertEqual($expected, $entity->export());
 }
All Usage Examples Of lithium\data\Entity::export