Set the custom style of an area in the currently loaded collection version.

@param \Concrete\Core\Area\Area $area
@param \Concrete\Core\Entity\StyleCustomizer\Inline\StyleSet $set
173869
public function setCustomStyleSet($area, $set)
    {
        $db = Loader::db();
        $db->Replace(
            'CollectionVersionAreaStyles',
            [
                'cID' => $this->getCollectionID(),
                'cvID' => $this->getVersionID(),
                'arHandle' => $area->getAreaHandle(),
                'issID' => $set->getID(),
            ],
            ['cID', 'cvID', 'arHandle'],
            true
            );
    }
206762
public function setAreaServed($areaServed)
    {
        ObjectHelper::isInstanceOf($areaServed, [Place::class, TextValue::class]);

        $this->_areaServed = $areaServed;
        return $this;
    }
466604
protected function enqueue( $set, $type ) {
		// go over the set to see if it has styles or scripts

		$enqueue_type = 'wp_enqueue_' . $type;

		foreach ( $set as $key => $item ) {

			if ( is_int( $key ) ) {
				$enqueue_type( $item );
				continue;
			}

			$args = $this->build_asset_args( $item );
			$enqueue_type( $key, $args['src'], $args['deps'], $args['ver'], $args['in_footer'] );

		}

	}
1075644
public function setupAreaLocTaxonomy(array &$form, FormStateInterface $formState) {
    $limit_arealocs = $formState->getValue('attribute_code_limit') ?: NULL;

    $new_arr = [];
    if (isset($limit_arealocs)) {
      $new_arr = array_map(
        'trim',
        explode(',', $limit_arealocs)
      ) ?: [];
    }

    $locData = $this->propertyMethods->getAreaLocationDataFromTabs($new_arr);
    $arealocDataUpdateStatus = $this->propertyMethods->createAreaLocTermsFromTabs($locData);

    drupal_set_message(print_r('Updated Areas: ' . $arealocDataUpdateStatus[0], TRUE));
    drupal_set_message(print_r('Updated Locations: ' . $arealocDataUpdateStatus[1], TRUE));
  }
597411
function setStyles(el, styles) {
         var which;

         for (which in styles) {
             if (styles.hasOwnProperty(which)) {
                 Dom.setStyle(el, which, styles[which]);
             }
         }
     }
506519
static public function area($name, $value=null, $settings=[])
    {
        $name || $name = 'row[area_id]';
        if (!isset($settings['modal_url'])) $settings['modal_url'] = Ioc::url('common/data/select/area');
        
        return static::select($name, $value, $settings);
    }
916866
private function fillArea(Area $area, $path)
    {
        $finder = new Finder($path);

        foreach (SortorderParser::parse($finder) as $subPath)
        {
            $contentFullPath = $path . DIRECTORY_SEPARATOR . $subPath;
            if(file_exists($contentFullPath))
            {
                //Detect file extension
                $type = substr($subPath, strrpos($subPath, '.') + 1);

                $area->addContentAsLast(
                    new Content(
                        $type,
                        substr($contentFullPath, strlen($this->contentPath))
                    )
                );
            }
            else
            {
                throw new  PageException("Unable to find content at [$contentFullPath]");
            }
        }
    }
402620
public void addArea(final Section AREA) {
        if (null == AREA) return;
        areas.add(AREA);
        Collections.sort(areas, new SectionComparator());
        fireUpdateEvent(SECTION_EVENT);
    }
583679
public void addArea(final TimeSection AREA) {
        if (null == AREA) return;
        areas.add(AREA);
        Collections.sort(areas, new TimeSectionComparator());
        fireUpdateEvent(SECTION_EVENT);
    }
667174
def areas_select(name, collection, options = {})
      selectables = if collection.first.is_a?(Decidim::Area)
                      assemblies = collection
                                   .map { |a| [a.name[I18n.locale.to_s], a.id] }
                                   .sort_by { |arr| arr[0] }

                      @template.options_for_select(
                        assemblies,
                        selected: options[:selected]
                      )
                    else
                      @template.option_groups_from_collection_for_select(
                        collection,
                        :areas,
                        :translated_name,
                        :id,
                        :translated_name,
                        selected: options[:selected]
                      )
                    end

      select(name, selectables, options)
    end
600268
public function canAccess($area)
    {
        $accessCollection = $this->config['plans'][$this->subscription->stripe_plan]['access'];

        if (in_array($area, $accessCollection)) {
            return true;
        }

        return false;
    }
1020932
public function set_border($style) {
        $this->set_top($style);
        $this->set_bottom($style);
        $this->set_left($style);
        $this->set_right($style);
    }
1299908
public static function setStyleDefinition($name, Style $style) {
        if (!self::$styles) {
            self::$styles = self::initStyles();
        }

        self::$styles[$name] = $style;
    }
1173551
public void setColor(DateArea area, Color color) {
        // If null was supplied, then use the default color.
        if (color == null) {
            color = area.defaultColor;
        }
        // Save the color to the color map.
        colors.put(area, color);
        // Call any "updating functions" that are appropriate for the specified area.
        switch (area) {
            case BackgroundMonthAndYearMenuLabels:
            case BackgroundTodayLabel:
            case BackgroundClearLabel:
                if (parentCalendarPanel != null) {
                    parentCalendarPanel.zSetAllLabelIndicatorColorsToDefaultState();
                }
                break;
            default:
                if (parentDatePicker != null) {
                    parentDatePicker.zDrawTextFieldIndicators();
                }
                zDrawIndependentCalendarPanelIfNeeded();
        }
    }
1118948
public function setStyle(string $style): void
    {
        $style = strtolower($style);
        switch ($style) {
            case 'nested':
            case 'compact':
            case 'compressed':
            case 'expanded':
            case 'crunched':
                $this->flags = str_replace(" --style $this->style", '', $this->flags);
                $this->style = $style;
                $this->flags .= " --style $style";
                break;
            default:
                $this->log("Style $style ignored", Project::MSG_INFO);
        }
    }
119984
public function renderFieldset(Fieldset $fieldset)
	{
		// Create a new renderer and render the content
		$fieldsetRenderer = new static($this->csrfProvider);

		// Generate all the content
		foreach ($fieldset as $item)
		{
			$fieldsetRenderer->render($item);
		}

		$content = $fieldsetRenderer->getRenderedForm();

		// Create the fieldset tag and add the content
		$tag = Html::tag('fieldset', $fieldset->getAttributes(), $content);

		// Make sure everything is added to the parent table
		$cell = new Table\Cell($tag);
		$cell->setAttributes(['colspan' => 2]);

		$this->table->addCell($cell);
		$this->table->addRow();

		return '';
	}
1340325
function &addArea($name = null) {
            if (!$name) {
                $name = uniqid(microtime(true), true);
            }
            $this->areas[$name] = new Area();
            return $this->areas[$name];
        }