• File: sheet.class.php
  • Full Path: /home/bravrvjk/hpgt.org/wp-content/plugins/unlimited-elements-for-elementor/inc_php/framework/google/sheets/sheet.class.php
  • Date Modified: 09/21/2023 1:48 PM
  • File size: 667 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

class UEGoogleAPISheet extends UEGoogleAPIModel{

	/**
	 * Get the identifier.
	 *
	 * @return int
	 */
	public function getId(){

		$id = $this->getPropertyValue("sheetId");

		return $id;
	}

	/**
	 * Get the title.
	 *
	 * @return string
	 */
	public function getTitle(){

		$title = $this->getPropertyValue("title");

		return $title;
	}

	/**
	 * Get the property value.
	 *
	 * @param string $key
	 * @param mixed $fallback
	 *
	 * @return mixed
	 */
	private function getPropertyValue($key, $fallback = null){

		$properties = $this->getAttribute("properties");
		$value = UniteFunctionsUC::getVal($properties, $key, $fallback);

		return $value;
	}

}