Sets an image style data
@param integer $style_id
329987
protected function setImageStyle($style_id)
    {
        $this->data_imagestyle = array();

        if (is_numeric($style_id)) {

            $this->data_imagestyle = $this->image_style->get($style_id);

            if (empty($this->data_imagestyle)) {
                $this->outputHttpStatus(404);
            }
        }

        $this->prepareImageStyle($this->data_imagestyle);
    }
1346772
public function setRelatedId( $id )
	{
		if ( $id === $this->getRelatedId() ) { return; }
		$id = (int) $id;
		$this->_values['relatedid'] = $id;
		$this->setModified();
	}
480810
protected function submitEditImageStyle()
    {
        if ($this->isPosted('delete')) {
            $this->deleteImageStyle();
        } else if ($this->isPosted('save') && $this->validateEditImageStyle()) {
            if (isset($this->data_imagestyle['imagestyle_id'])) {
                $this->updateImageStyle();
            } else {
                $this->addImageStyle();
            }
        }
    }
921724
protected function add($style, $key, $value)
    {
        $this->style[$style]->add($key, $value);

        // If we are adding a color, make sure it gets added
        // as a background color too
        if ($style == 'color') {
            $this->style['background']->add($key, $value);
        }
    }
56194
protected function setDataImagesIndexPage()
    {
        $options = array(
            'imagestyle' => $this->configTheme('image_style_page', 5)
        );

        $this->setItemThumb($this->data_page, $this->image, $options);
        $this->setData('images', $this->render('page/images', array('page' => $this->data_page)));
    }
45239
protected function updateImageStyle()
    {
        $this->controlAccess('image_style_edit');

        if ($this->image_style->update($this->data_imagestyle['imagestyle_id'], $this->getSubmitted())) {
            $this->image_style->clearCache($this->data_imagestyle['imagestyle_id']);
            $this->redirect('admin/settings/imagestyle', $this->text('Image style has been updated'), 'success');
        }

        $this->redirect('', $this->text('Image style has not been updated'), 'warning');
    }
391309
def _get_by_id(self, style_id, style_type):
        
        style = self._element.get_by_id(style_id)
        if style is None or style.type != style_type:
            return self.default(style_type)
        return StyleFactory(style)
749679
public function setStyle($style, $column1, $row1, $column2 = null, $row2 = null)
    {
        $this->sheet->getStyleByColumnAndRow($column1, $row1, $column2, $row2)->applyFromArray($style);
    }
536030
def setStyle(self, style):
        
        self._style = style
        self.setDirty()
        self.update()
913769
protected function setColorStyle( $styleType, $color, $type = false, $colorType = 'rgb' )
    {
        // Set the styles
        $styles = is_array( $color )
            ? $color
            : [
                'type'  => $type,
                'color' => [ $colorType => str_replace( '#', '', $color ) ],
            ];

        return $this->setStyle( $styleType, $styles );
    }
1078114
protected function deleteImageStyle()
    {
        if ($this->canDeleteImageStyle() && $this->image_style->delete($this->data_imagestyle['imagestyle_id'])) {
            $this->image_style->clearCache($this->data_imagestyle['imagestyle_id']);
            $this->redirect('admin/settings/imagestyle', $this->text('Image style has been deleted'), 'success');
        }

        $this->redirect('', $this->text('Image style has not been deleted'), 'warning');
    }
515935
public function get($tableId, $styleId, $optParams = array()) {
      $params = array('tableId' => $tableId, 'styleId' => $styleId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new StyleSetting($data);
      } else {
        return $data;
      }
    }
182589
public function set_id( $id ) {
		$this->id = $this->is_valid_id( $id ) ? $id : $this->generate_session_id();
	}
49275
public function addStyle(Style $style)
    {
        if (null === $style->getId()) {
            $this->register($style->getFont(), $this->fonts);
            $this->register($style->getFill(), $this->fills);
            $this->register($style->getBorder(), $this->borders);
            $this->register($style, $this->styles);
            $style->lock();
        }
    }
1004968
def style(self, id):
        """"""
        return self._serve_file(os.path.join(media_path, 'style', id))
1177960
protected function setModuleEditor($module_id)
    {
        $this->data_module = $this->module->get($module_id);

        if (empty($this->data_module)) {
            $this->outputHttpStatus(404);
        }

        if ($this->data_module['type'] !== 'theme') {
            $this->outputHttpStatus(403);
        }
    }
886877
public function addStyle(Style $style)
    {
        if (!$this->styleSet) {
            $this->styleSet = new DefaultStyleSet();
        }

        $this->styleSet->add($style);

        return $this;
    }