PHP code example of openbuildings / promotions
1. Go to this page and download the library: Download openbuildings/promotions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
openbuildings / promotions example snippets
class Model_Brand_Purchase extends Kohana_Model_Brand_Purchase {
public static function initialize(Jam_Meta $meta)
{
parent::initialize($meta);
$meta
->behaviors(array(
'promotable_brand_purchase' => Jam::behavior('promotable_brand_purchase'),
));
}
}
// ...
class Model_Purchase extends Kohana_Model_Purchase {
public static function initialize(Jam_Meta $meta)
{
parent::initialize($meta);
$meta
->behaviors(array(
'promotable_purchase' => Jam::behavior('promotable_purchase'),
));
}
}