Handle wiaas documents

This commit is contained in:
Almira Krdzic
2018-10-03 16:46:41 +02:00
parent 6afffc7eca
commit 3ad210f883
42 changed files with 2258 additions and 258 deletions

View File

@@ -49,6 +49,16 @@ class Wiaas_Package_Addon {
return $addons;
}
/**
* Retrieve ids of package addons
* @param int $package
*
* @return array
*/
public static function get_package_addons_ids($package) {
return $package->get_meta( '__wiaas_package_addons' );
}
/**
* Sets addons for provided wiaas standard package type
* @param $package