CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • files_by_entity_get method inaccessible?
Pages: [1]

Author Topic: files_by_entity_get method inaccessible?  (Read 472 times)

Jeremy Proffitt

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
    • Mobius New Media
  • CiviCRM version: 4.4.x
  • CMS version: Joomla 2.5.x/3.x / D7
  • MySQL version: 5.1.x
  • PHP version: 5.3.10+, 5.4.x
files_by_entity_get method inaccessible?
June 21, 2012, 08:47:20 am
I've tried just about every way I can think of to access the files_by_entity_get method in the api, and have been completely unsuccessful. It seems as though perhaps there should actually be an EntityFile class to replicate the EntityTag functionality in order to make things consistent.

I really need to get this working one way or the other within the next few days, so any guidance is appreciated.
Jeremy Proffitt
Mobius New Media
IRC: JP_EzoD

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: files_by_entity_get method inaccessible?
June 21, 2012, 09:44:14 pm
Hi,

It is missing indeed, would be great you can add it in api/v3/EntityFile.php .

api/v3/Email.php is a good example of how simple is it.

and for the unit tests (to be installed from svn) tests/phpunit/api/v3/EmailTest.php (or any of the files, Email is a bit more complex than others entities to test)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • files_by_entity_get method inaccessible?

This forum was archived on 2017-11-26.