public findOrCreate ( $page_id, Eccube\Entity\Master\DeviceType $DeviceType ) | ||
$DeviceType | Eccube\Entity\Master\DeviceType |
public function findOrCreate($page_id, DeviceType $DeviceType)
{
if (is_null($page_id)) {
$PageLayout = $this->newPageLayout($DeviceType);
return $PageLayout;
} else {
return $this->get($DeviceType, $page_id);
}
}