gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
+92
View File
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Webfonts;
class Axis extends \Google\Model
{
/**
* maximum value
*
* @var float
*/
public $end;
/**
* minimum value
*
* @var float
*/
public $start;
/**
* tag name.
*
* @var string
*/
public $tag;
/**
* maximum value
*
* @param float $end
*/
public function setEnd($end)
{
$this->end = $end;
}
/**
* @return float
*/
public function getEnd()
{
return $this->end;
}
/**
* minimum value
*
* @param float $start
*/
public function setStart($start)
{
$this->start = $start;
}
/**
* @return float
*/
public function getStart()
{
return $this->start;
}
/**
* tag name.
*
* @param string $tag
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Axis::class, 'Google_Service_Webfonts_Axis');
@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Webfonts\Resource;
use Google\Service\Webfonts\WebfontList;
/**
* The "webfonts" collection of methods.
* Typical usage is:
* <code>
* $webfontsService = new Google\Service\Webfonts(...);
* $webfonts = $webfontsService->webfonts;
* </code>
*/
class Webfonts extends \Google\Service\Resource
{
/**
* Retrieves the list of fonts currently served by the Google Fonts Developer
* API. (webfonts.listWebfonts)
*
* @param array $optParams Optional parameters.
*
* @opt_param string capability Controls the font urls in `Webfont.files`, by
* default, static ttf fonts are sent.
* @opt_param string category Filters by Webfont.category, if category is found
* in Webfont.categories. If not set, returns all families.
* @opt_param string family Filters by Webfont.family, using literal match. If
* not set, returns all families
* @opt_param string sort Enables sorting of the list.
* @opt_param string subset Filters by Webfont.subset, if subset is found in
* Webfont.subsets. If not set, returns all families.
* @return WebfontList
* @throws \Google\Service\Exception
*/
public function listWebfonts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], WebfontList::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Webfonts::class, 'Google_Service_Webfonts_Resource_Webfonts');
+70
View File
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Webfonts;
class Tag extends \Google\Model
{
/**
* The name of the tag.
*
* @var string
*/
public $name;
/**
* The weight of the tag.
*
* @var float
*/
public $weight;
/**
* The name of the tag.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The weight of the tag.
*
* @param float $weight
*/
public function setWeight($weight)
{
$this->weight = $weight;
}
/**
* @return float
*/
public function getWeight()
{
return $this->weight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tag::class, 'Google_Service_Webfonts_Tag');
@@ -0,0 +1,287 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Webfonts;
class Webfont extends \Google\Collection
{
protected $collection_key = 'variants';
protected $axesType = Axis::class;
protected $axesDataType = 'array';
/**
* The category of the font.
*
* @var string
*/
public $category;
/**
* The color format(s) available for this family.
*
* @var string[]
*/
public $colorCapabilities;
/**
* The name of the font.
*
* @var string
*/
public $family;
/**
* The font files (with all supported scripts) for each one of the available
* variants, as a key : value map.
*
* @var string[]
*/
public $files;
/**
* This kind represents a webfont object in the webfonts service.
*
* @var string
*/
public $kind;
/**
* The date (format "yyyy-MM-dd") the font was modified for the last time.
*
* @var string
*/
public $lastModified;
/**
* Font URL for menu subset, a subset of the font that is enough to display
* the font name
*
* @var string
*/
public $menu;
/**
* The scripts supported by the font.
*
* @var string[]
*/
public $subsets;
protected $tagsType = Tag::class;
protected $tagsDataType = 'array';
/**
* The available variants for the font.
*
* @var string[]
*/
public $variants;
/**
* The font version.
*
* @var string
*/
public $version;
/**
* Axis for variable fonts.
*
* @param Axis[] $axes
*/
public function setAxes($axes)
{
$this->axes = $axes;
}
/**
* @return Axis[]
*/
public function getAxes()
{
return $this->axes;
}
/**
* The category of the font.
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* The color format(s) available for this family.
*
* @param string[] $colorCapabilities
*/
public function setColorCapabilities($colorCapabilities)
{
$this->colorCapabilities = $colorCapabilities;
}
/**
* @return string[]
*/
public function getColorCapabilities()
{
return $this->colorCapabilities;
}
/**
* The name of the font.
*
* @param string $family
*/
public function setFamily($family)
{
$this->family = $family;
}
/**
* @return string
*/
public function getFamily()
{
return $this->family;
}
/**
* The font files (with all supported scripts) for each one of the available
* variants, as a key : value map.
*
* @param string[] $files
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return string[]
*/
public function getFiles()
{
return $this->files;
}
/**
* This kind represents a webfont object in the webfonts service.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The date (format "yyyy-MM-dd") the font was modified for the last time.
*
* @param string $lastModified
*/
public function setLastModified($lastModified)
{
$this->lastModified = $lastModified;
}
/**
* @return string
*/
public function getLastModified()
{
return $this->lastModified;
}
/**
* Font URL for menu subset, a subset of the font that is enough to display
* the font name
*
* @param string $menu
*/
public function setMenu($menu)
{
$this->menu = $menu;
}
/**
* @return string
*/
public function getMenu()
{
return $this->menu;
}
/**
* The scripts supported by the font.
*
* @param string[] $subsets
*/
public function setSubsets($subsets)
{
$this->subsets = $subsets;
}
/**
* @return string[]
*/
public function getSubsets()
{
return $this->subsets;
}
/**
* The tags that apply to this family.
*
* @param Tag[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return Tag[]
*/
public function getTags()
{
return $this->tags;
}
/**
* The available variants for the font.
*
* @param string[] $variants
*/
public function setVariants($variants)
{
$this->variants = $variants;
}
/**
* @return string[]
*/
public function getVariants()
{
return $this->variants;
}
/**
* The font version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Webfont::class, 'Google_Service_Webfonts_Webfont');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Webfonts;
class WebfontList extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Webfont::class;
protected $itemsDataType = 'array';
/**
* This kind represents a list of webfont objects in the webfonts service.
*
* @var string
*/
public $kind;
/**
* The list of fonts currently served by the Google Fonts API.
*
* @param Webfont[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Webfont[]
*/
public function getItems()
{
return $this->items;
}
/**
* This kind represents a list of webfont objects in the webfonts service.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WebfontList::class, 'Google_Service_Webfonts_WebfontList');