CBPDocumentService::getEntityName: Bitrix method

      
<?php 
//  CBPDocumentService :: getEntityName()
//  /dist/bitrix/modules/bizproc/classes/general/documentservice.php:17

    
public function getEntityName($moduleId$entity)
    {
        if (
strlen($moduleId) > 0)
            
CModule::IncludeModule($moduleId);

        if (
class_exists($entity) && method_exists($entity'getEntityName'))
        {
            return 
call_user_func_array(array($entity"getEntityName"), array($entity));
        }
        return 
null;
    }