_masterSlide; } /** * Get array of slide layouts. * * These are all an array consisting of: * - name (string) * - body (string) * * @return array */ public function getLayouts() { return $this->_layouts; } /** * Find specific slide layout. * * This is an array consisting of: * - name (string) * - body (string) * * @return array * @throws Exception */ public function findLayout($name = '') { foreach ($this->_layouts as $layout) { if ($layout['name'] == $name) { return $layout; } } throw new Exception("Could not find slide layout $name in current layout pack."); } /** * Find specific slide layout index. * * @return int * @throws Exception */ public function findLayoutIndex($name = '') { $i = 0; foreach ($this->_layouts as $layout) { if ($layout['name'] == $name) { return $i; } ++$i; } throw new Exception("Could not find slide layout $name in current layout pack."); } }