You are here

protected static function FeedImport::checkFunctions in Feed Import 7.2

Same name and namespace in other branches
  1. 7 feed_import.inc.php \FeedImport::checkFunctions()

Checks if entity functions exists

Parameters

string $entity: Entity name

Return value

bool TRUE if function exists, FALSE otherwise

1 call to FeedImport::checkFunctions()
FeedImport::processFeed in ./feed_import.inc.php
This function is choosing process function and executes it

File

./feed_import.inc.php, line 863
Feed import class for parsing and processing content.

Class

FeedImport
@file Feed import class for parsing and processing content.

Code

protected static function checkFunctions($entity) {
  self::$functionSave = $entity . '_save';
  self::$functionLoad = $entity . '_load';
  return function_exists(self::$functionSave) && function_exists(self::$functionLoad);
}