src/objects/ExtensibleSearchSuggestion.php
public function getApprovedField() {

		$approved = CheckboxField::create(
			'Approved',
			'',
			$this->Approved
		)->addExtraClass('approved');

		// Restrict this field appropriately.

		$user = Member::currentUserID();
		if(!Permission::checkMember($user, 'EXTENSIBLE_SEARCH_SUGGESTIONS')) {
			$approved->setAttribute('disabled', 'true');
		}
		return $approved;
	}
public function getApprovedField() {

		$approved = CheckboxField::create(
			'Approved',
			'',
			$this->Approved
		)->addExtraClass('approved');

		// Restrict this field appropriately.

		$user = Member::currentUserID();
		if(!Permission::checkMember($user, 'EXTENSIBLE_SEARCH_SUGGESTIONS')) {
			$approved->setAttribute('disabled', 'true');
		}
		return $approved;
	}
public function getApprovedField ( ) { $ approved = CheckboxField :: create ( 'Approved' , '' , $ this -> Approved ) -> addExtraClass ( 'approved' ) ; // Restrict this field appropriately. $ user = Member :: currentUserID ( ) ; if ( ! Permission :: checkMember ( $ user , 'EXTENSIBLE_SEARCH_SUGGESTIONS' ) ) { $ approved -> setAttribute ( 'disabled' , 'true' ) ; } return $ approved ; }
Retrieve the approved field for update purposes.

@return string
Retrieve the approved field for update purposes .