예제 #1
0
	/**
	 * Load rendered schema data, usually from a Model declaration, for this column.
	 *
	 * @param array $schema
	 *
	 * @throws \Exception
	 */
	public function setSchema($schema){
		
		// Load all the data from the parent object
		parent::setSchema($schema);
		
		// And this one has options!
		if(!\Core\is_numeric_array($schema['options'])){
			$this->options = array_keys($schema['options']);
		}
		else{
			$this->options = $schema['options'];
		}
	}