Call udf-function from SQlite trigger. How to register?

Hi, everyone.

I have one question about how right to register udf-function to call it in future from trigger. I’ve found sqlite_create_function() and SQliteDataBase::create_function() into php-documentation, but what a class describes them I’ve not found. Also i don’t understand how and where to write it, that the yii project sees them. Please help me. Thanks

The decision has been found:

db = new SQlite3 (‘name.db’);

db->createfunction(‘func’, ‘func’);

but to call sqlite3, you need to have php > version 5.3

My problem was is old php version (5.2.6).