widgets/TextureChooser.php
private function getTexture() {

		// Provided name will override
		if( isset( $this->model ) ) {

			$texture = $this->attribute;

			if( isset( $this->model->$texture ) ) {

				return $this->model->$texture;
			}
		}

		if( isset( $this->texture ) ) {

			return $this->texture;
		}

		return $this->default;
	}
private function getTexture() {

		// Provided name will override
		if( isset( $this->model ) ) {

			$texture = $this->attribute;

			if( isset( $this->model->$texture ) ) {

				return $this->model->$texture;
			}
		}

		if( isset( $this->texture ) ) {

			return $this->texture;
		}

		return $this->default;
	}
private function getTexture ( ) { // Provided name will override if ( isset ( $ this -> model ) ) { $ texture = $ this -> attribute ; if ( isset ( $ this -> model -> $ texture ) ) { return $ this -> model -> $ texture ; } } if ( isset ( $ this -> texture ) ) { return $ this -> texture ; } return $ this -> default ; }
Return the texture to be displayed.

@return string
Return the texture to be displayed .