classes/hypeJunction/Prototyper/EntityFactory.php
public function getAttributeNames($entity) {
		
		if (!$entity instanceof \ElggEntity) {
			return array();
		}

		$default = array(
			'guid',
			'type',
			'subtype',
			'owner_guid',
			'container_guid',
			'site_guid',
			'access_id',
			'time_created',
			'time_updated',
			'last_action',
			'enabled',
		);

		switch ($entity->getType()) {
			case 'user';
				$attributes = array(
					'name',
					'username',
					'email',
					'language',
					'banned',
					'admin',
					'password',
					'salt'
				);
				break;

			case 'group' :
				$attributes = array(
					'name',
					'description',
				);
				break;

			case 'object' :
				$attributes = array(
					'title',
					'description',
				);
				break;
		}

		return array_merge($default, $attributes);
	}
public function getAttributeNames($entity) {
		
		if (!$entity instanceof \ElggEntity) {
			return array();
		}

		$default = array(
			'guid',
			'type',
			'subtype',
			'owner_guid',
			'container_guid',
			'site_guid',
			'access_id',
			'time_created',
			'time_updated',
			'last_action',
			'enabled',
		);

		switch ($entity->getType()) {
			case 'user';
				$attributes = array(
					'name',
					'username',
					'email',
					'language',
					'banned',
					'admin',
					'password',
					'salt'
				);
				break;

			case 'group' :
				$attributes = array(
					'name',
					'description',
				);
				break;

			case 'object' :
				$attributes = array(
					'title',
					'description',
				);
				break;
		}

		return array_merge($default, $attributes);
	}
public function getAttributeNames ( $ entity ) { if ( ! $ entity instanceof \ ElggEntity ) { return array ( ) ; } $ default = array ( 'guid' , 'type' , 'subtype' , 'owner_guid' , 'container_guid' , 'site_guid' , 'access_id' , 'time_created' , 'time_updated' , 'last_action' , 'enabled' , ) ; switch ( $ entity -> getType ( ) ) { case 'user' ; $ attributes = array ( 'name' , 'username' , 'email' , 'language' , 'banned' , 'admin' , 'password' , 'salt' ) ; break ; case 'group' : $ attributes = array ( 'name' , 'description' , ) ; break ; case 'object' : $ attributes = array ( 'title' , 'description' , ) ; break ; } return array_merge ( $ default , $ attributes ) ; }
Returns attribute names for an entity

@param ElggEntity $entity Entity
@return array
Returns attribute names for an entity