public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/export.php
/**
		 * Check what fields we have in the fields to check for in an object.
		 */
Check what fields we have in the fields to check for in an object.
Check what fields we have in the fields to check for in an object .
public function debug_courseCheckFieldsWeHave( $objectDetails, $fieldsToProcess ) {
			error_log( '-------- START --------' );
			foreach ( $objectDetails as $singleFieldName => $value ) {
				$gotIt = false;
				if ( ! in_array( $singleFieldName, $fieldsToProcess ) ) {
					$gotIt = __( 'Missing', 'wp-courseware' );
				}
				error_log( sprintf( "%-'-50s%s", $singleFieldName, $gotIt ) );
			}
			error_log( '-------- END --------' );
		}
public function debug_courseCheckFieldsWeHave ( $ objectDetails , $ fieldsToProcess ) { error_log ( '-------- START --------' ) ; foreach ( $ objectDetails as $ singleFieldName => $ value ) { $ gotIt = false ; if ( ! in_array ( $ singleFieldName , $ fieldsToProcess ) ) { $ gotIt = __ ( 'Missing' , 'wp-courseware' ) ; } error_log ( sprintf ( " %-'-50s%s " , $ singleFieldName , $ gotIt ) ) ; } error_log ( '-------- END --------' ) ; }
Check what fields we have in the fields to check for in an object.
Check what fields we have in the fields to check for in an object .