eZ\Publish\Core\FieldType\Media\MediaStorage\Gateway\LegacyStorage::getPropertyMapping PHP Method

getPropertyMapping() protected method

Returns a column to property mapping for the storage table.
protected getPropertyMapping ( )
    protected function getPropertyMapping()
    {
        $propertyMap = parent::getPropertyMapping();
        $propertyMap['has_controller'] = array('name' => 'hasController', 'cast' => function ($val) {
            return (bool) $val;
        });
        $propertyMap['is_autoplay'] = array('name' => 'autoplay', 'cast' => function ($val) {
            return (bool) $val;
        });
        $propertyMap['is_loop'] = array('name' => 'loop', 'cast' => function ($val) {
            return (bool) $val;
        });
        $propertyMap['width'] = array('name' => 'width', 'cast' => 'intval');
        $propertyMap['height'] = array('name' => 'height', 'cast' => 'intval');
        return $propertyMap;
    }