Sso/Upgrade/Data.php
final protected function attribute($name, $label) {
		static $ordering = 1000; /** @var int $ordering */
		df_eav_setup()->addAttribute('customer', $name, [
			'input' => 'text'
			,'label' => "{$this->labelPrefix()} $label"
			,'position' => $ordering++
			,'required' => false
			,'sort_order' => $ordering
			,'system' => false
			,'type' => 'static'
			,'visible' => false
		]);
		/** @var int $attributeId */
		$attributeId = df_first(df_fetch_col('eav_attribute', 'attribute_id', 'attribute_code', $name));
		df_conn()->insert(df_table('customer_form_attribute'), [
			'attribute_id' => $attributeId, 'form_code' => 'adminhtml_customer'
		]);
	}
final protected function attribute($name, $label) {
		static $ordering = 1000; /** @var int $ordering */
		df_eav_setup()->addAttribute('customer', $name, [
			'input' => 'text'
			,'label' => "{$this->labelPrefix()} $label"
			,'position' => $ordering++
			,'required' => false
			,'sort_order' => $ordering
			,'system' => false
			,'type' => 'static'
			,'visible' => false
		]);
		/** @var int $attributeId */
		$attributeId = df_first(df_fetch_col('eav_attribute', 'attribute_id', 'attribute_code', $name));
		df_conn()->insert(df_table('customer_form_attribute'), [
			'attribute_id' => $attributeId, 'form_code' => 'adminhtml_customer'
		]);
	}
final protected function attribute ( $ name , $ label ) { static $ ordering = 1000 ; /** @var int $ordering */ df_eav_setup ( ) -> addAttribute ( 'customer' , $ name , [ 'input' => 'text' , 'label' => "{$this->labelPrefix()} $label" , 'position' => $ ordering ++ , 'required' => false , 'sort_order' => $ ordering , 'system' => false , 'type' => 'static' , 'visible' => false ] ) ; /** @var int $attributeId */ $ attributeId = df_first ( df_fetch_col ( 'eav_attribute' , 'attribute_id' , 'attribute_code' , $ name ) ) ; df_conn ( ) -> insert ( df_table ( 'customer_form_attribute' ) , [ 'attribute_id' => $ attributeId , 'form_code' => 'adminhtml_customer' ] ) ; }
2015-10-10
@used-by _process()
@used-by \Dfe\FacebookLogin\Setup\UpgradeData::_process()
@param string $name
@param string $label
2015 - 10 - 10