public findLayoutName ( integer $idLayout = '' ) : integer | ||
$idLayout | integer | |
리턴 | integer |
public function findLayoutName($idLayout = '')
{
foreach ($this->layouts as $layoutId => $layout) {
if ($layoutId == $idLayout) {
return $layout['name'];
}
}
throw new \Exception("Could not find slide layout {$idLayout} in current layout pack.");
}