Download the PHP package anzui/metamodels_openimmo without Composer

On this page you can find all versions of the php package anzui/metamodels_openimmo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package metamodels_openimmo

MetaModels - OpenImmo

![Gitter](https://badges.gitter.im/Join Chat.svg)

This module makes it possible to import OpenImmo-Data into an existing MetaModel.

Installation

The contents of the contao folder needs to be placed within the folder system/modules/metamodels_openimmo/, while the the src folder needs to go to composer/anzui/metamodels_openimmo/src.

Import the Template

You can save a lot of time and work by importing the pre-made template.

It consists of the MetaModel "immo" and pre-configured attributes and the corresponding MetaModel-OpenImmo link.

  1. In the Backend under "MetaModels - OpenImmo > Settings" select the MetaModels-Version you have installed.
  2. Hit "Import Template" and you will get a good starting point for your object catalog.

Warning: Importing the template will erase all of your existing MetaModels and MetaModels-OpenImmo links.

Usage

  1. Create your metamodel
  2. In the Backend under "MetaModels - OpenImmo > Links" add a new MetaModel-OpenImmo link
  3. Select the folder in which the object-data will be uploaded to by your Software
  4. Select the folder in which file attachments for object should be stored
  5. Link each field in your metamodel to an OpenImmo field.
  6. Setup the upload of your object data in your Software to upload the files in the directory you selected in step 3

Synchronising

  1. Trigger uploading of the data in your software
  2. In the Backend unter "MetaModels - OpenImmo > Links" click on the "sync" icon
  3. Select the data-file to sync, by default the oldest unsynced file will be selected
  4. hit the "Sync" button, if it is a zip file it gets unpacked and you must hit the "Sync" button again
  5. The data is now synced with your database

Automation

For each MetaModels-OpenImmo Link you can configure automatic syncing and deletion of old files.

This automation uses Contao's cron service. By default it requires the page to be called by any web browser regulary to work.

You can also setup Contao's cron service to be executed by your systems cron.

Field Callbacks

You can add a callback function to each field-link.

It will be passed the value from the XML, the field object, the immo-array, the xml tree, the current xpath and the metamodel attribute.

It must return the value to be set on the field.

public static function fieldCallback($value, $field_obj, &$immo, &$xml, $xpath, $metamodelAttribute)
{
    ...

    return $value;
}

Hooks

MetaModels - OpenImmo provides a hook that is called for each item that will be synced with the database

$GLOBALS['TL_HOOKS']['metaModelsOpenImmoSync'][] = array('MyClass', 'myMethod')

It gets passed an array containing all synced fields and the original XML tree for that particular object within the _xml_ key of the array.

It must return the array. Every modification you made to it will be stored in the database.


All versions of metamodels_openimmo with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
contao/core Version >=3.2,<3.6
metamodels/core Version >=2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package anzui/metamodels_openimmo contains the following files

Loading the files please wait ....